diff --git a/substrate/core/sr-api-macros/tests/ui/impl_incorrect_method_signature.stderr b/substrate/core/sr-api-macros/tests/ui/impl_incorrect_method_signature.stderr index 6d5d484efe..15434a52ba 100644 --- a/substrate/core/sr-api-macros/tests/ui/impl_incorrect_method_signature.stderr +++ b/substrate/core/sr-api-macros/tests/ui/impl_incorrect_method_signature.stderr @@ -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`. diff --git a/substrate/core/sr-api-macros/tests/ui/type_reference_in_impl_runtime_apis_call.stderr b/substrate/core/sr-api-macros/tests/ui/type_reference_in_impl_runtime_apis_call.stderr index 12ec399972..9bfc04c8db 100644 --- a/substrate/core/sr-api-macros/tests/ui/type_reference_in_impl_runtime_apis_call.stderr +++ b/substrate/core/sr-api-macros/tests/ui/type_reference_in_impl_runtime_apis_call.stderr @@ -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 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`.