mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-23 22:25:42 +00:00
Fix ui tests (E0308 error) (#3040)
This commit is contained in:
committed by
Bastian Köcher
parent
d0a48212a6
commit
1fdf315348
@@ -10,4 +10,14 @@ error[E0053]: method `test` has an incompatible type for trait
|
|||||||
= note: expected type `fn(u64)`
|
= note: expected type `fn(u64)`
|
||||||
found type `fn(std::string::String)`
|
found type `fn(std::string::String)`
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0053`.
|
error[E0308]: mismatched types
|
||||||
|
--> $DIR/impl_incorrect_method_signature.rs:20:11
|
||||||
|
|
|
||||||
|
20 | fn test(data: String) {}
|
||||||
|
| ^^^^ expected u64, found struct `std::string::String`
|
||||||
|
|
|
||||||
|
= note: expected type `u64`
|
||||||
|
found type `std::string::String`
|
||||||
|
|
||||||
|
Some errors have detailed explanations: E0053, E0308.
|
||||||
|
For more information about an error, try `rustc --explain E0053`.
|
||||||
|
|||||||
+17
-1
@@ -10,4 +10,20 @@ error[E0053]: method `test` has an incompatible type for trait
|
|||||||
= note: expected type `fn(u64)`
|
= note: expected type `fn(u64)`
|
||||||
found type `fn(&u64)`
|
found type `fn(&u64)`
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0053`.
|
error[E0308]: mismatched types
|
||||||
|
--> $DIR/type_reference_in_impl_runtime_apis_call.rs:18:1
|
||||||
|
|
|
||||||
|
18 | / impl_runtime_apis! {
|
||||||
|
19 | | impl self::Api<Block> for Runtime {
|
||||||
|
20 | | fn test(data: &u64) {
|
||||||
|
21 | | unimplemented!()
|
||||||
|
22 | | }
|
||||||
|
23 | | }
|
||||||
|
24 | | }
|
||||||
|
| |_^ expected u64, found &u64
|
||||||
|
|
|
||||||
|
= note: expected type `u64`
|
||||||
|
found type `&u64`
|
||||||
|
|
||||||
|
Some errors have detailed explanations: E0053, E0308.
|
||||||
|
For more information about an error, try `rustc --explain E0053`.
|
||||||
|
|||||||
Reference in New Issue
Block a user