Skip to content
Snippets Groups Projects
Commit 1fdf3153 authored by Stanislav Tkach's avatar Stanislav Tkach Committed by Bastian Köcher
Browse files

Fix ui tests (E0308 error) (#3040)

parent d0a48212
No related merge requests found
......@@ -10,4 +10,14 @@ error[E0053]: method `test` has an incompatible type for trait
= note: expected type `fn(u64)`
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`.
......@@ -10,4 +10,20 @@ error[E0053]: method `test` has an incompatible type for trait
= note: expected 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`.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment