mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 17:28:00 +00:00
Update syn, proc-macro2 and quote to 1.x (#4028)
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
use client::decl_runtime_apis;
|
||||
|
||||
decl_runtime_apis! {
|
||||
pub trait Api {
|
||||
fn test(at: u64);
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
@@ -1,5 +0,0 @@
|
||||
error: `decl_runtime_apis!` adds automatically a parameter `at: &BlockId<Block>`. Please rename/remove your parameter.
|
||||
--> $DIR/adding_at_parameter.rs:5:11
|
||||
|
|
||||
5 | fn test(at: u64);
|
||||
| ^^
|
||||
@@ -1,4 +1,4 @@
|
||||
error: Self values are not supported.
|
||||
error: `self` as argument not supported.
|
||||
--> $DIR/adding_self_parameter.rs:5:11
|
||||
|
|
||||
5 | fn test(&self);
|
||||
|
||||
@@ -40,3 +40,15 @@ error[E0308]: mismatched types
|
||||
|
|
||||
= note: expected type `u64`
|
||||
found type `&u64`
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/type_reference_in_impl_runtime_apis_call.rs:20:11
|
||||
|
|
||||
20 | fn test(data: &u64) {
|
||||
| ^^^^^^^
|
||||
| |
|
||||
| expected u64, found &u64
|
||||
| help: consider removing the borrow: `data`
|
||||
|
|
||||
= note: expected type `u64`
|
||||
found type `&u64`
|
||||
|
||||
Reference in New Issue
Block a user