mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
8721d98dd6
* move benches into tests, ignore non-passing doctests * Rename sr-api folder * Move test-primitives to primitives, use that for sp-api doctests
34 lines
832 B
Plaintext
34 lines
832 B
Plaintext
error: can't qualify macro invocation with `pub`
|
|
--> $DIR/invalid_api_version.rs:1:1
|
|
|
|
|
1 | / sp_api::decl_runtime_apis! {
|
|
2 | | #[api_version]
|
|
3 | | pub trait Api {
|
|
4 | | fn test(data: u64);
|
|
5 | | }
|
|
6 | | }
|
|
| | ^ in this macro invocation
|
|
| |_|
|
|
|
|
|
|
|
|
= help: try adjusting the macro to put `pub` inside the invocation
|
|
|
|
error: Unexpected `api_version` attribute. The supported format is `api_version(1)`
|
|
--> $DIR/invalid_api_version.rs:1:1
|
|
|
|
|
1 | / sp_api::decl_runtime_apis! {
|
|
2 | | #[api_version]
|
|
3 | | pub trait Api {
|
|
4 | | fn test(data: u64);
|
|
5 | | }
|
|
6 | | }
|
|
| | ^ in this macro invocation
|
|
| |_|
|
|
|
|
|
|
|
error: Unexpected `api_version` attribute. The supported format is `api_version(1)`
|
|
--> $DIR/invalid_api_version.rs:2:4
|
|
|
|
|
2 | #[api_version]
|
|
| ^^^^^^^^^^^
|