mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Update UI tests for Rust 1.64 (#12440)
* Update UI tests for Rust 1.64 * Test with the staging image * Switch back to production
This commit is contained in:
@@ -18,5 +18,18 @@ note: type in trait
|
||||
error[E0308]: mismatched types
|
||||
--> tests/ui/impl_incorrect_method_signature.rs:19:11
|
||||
|
|
||||
19 | fn test(data: String) {}
|
||||
| ^^^^ expected `u64`, found struct `std::string::String`
|
||||
17 | / sp_api::impl_runtime_apis! {
|
||||
18 | | impl self::Api<Block> for Runtime {
|
||||
19 | | fn test(data: String) {}
|
||||
| | ^^^^ expected `u64`, found struct `std::string::String`
|
||||
20 | | }
|
||||
... |
|
||||
32 | | }
|
||||
33 | | }
|
||||
| |_- arguments to this function are incorrect
|
||||
|
|
||||
note: associated function defined here
|
||||
--> tests/ui/impl_incorrect_method_signature.rs:13:6
|
||||
|
|
||||
13 | fn test(data: u64);
|
||||
| ^^^^
|
||||
|
||||
+14
-2
@@ -18,9 +18,21 @@ note: type in trait
|
||||
error[E0308]: mismatched types
|
||||
--> tests/ui/type_reference_in_impl_runtime_apis_call.rs:19:11
|
||||
|
|
||||
19 | fn test(data: &u64) {
|
||||
| ^^^^^^^ expected `u64`, found `&u64`
|
||||
17 | / sp_api::impl_runtime_apis! {
|
||||
18 | | impl self::Api<Block> for Runtime {
|
||||
19 | | fn test(data: &u64) {
|
||||
| | ^^^^^^^ expected `u64`, found `&u64`
|
||||
20 | | unimplemented!()
|
||||
... |
|
||||
34 | | }
|
||||
35 | | }
|
||||
| |_- arguments to this function are incorrect
|
||||
|
|
||||
note: associated function defined here
|
||||
--> tests/ui/type_reference_in_impl_runtime_apis_call.rs:13:6
|
||||
|
|
||||
13 | fn test(data: u64);
|
||||
| ^^^^
|
||||
help: consider removing the borrow
|
||||
|
|
||||
19 - fn test(data: &u64) {
|
||||
|
||||
Reference in New Issue
Block a user