mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 17:26:12 +00:00
104 lines
2.8 KiB
Plaintext
104 lines
2.8 KiB
Plaintext
error: `#[eii_declaration(...)]` is only valid on macros
|
|
--> $DIR/errors.rs:8:1
|
|
|
|
|
LL | #[eii_declaration(bar)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0658]: macro attributes on statements are unstable
|
|
--> $DIR/errors.rs:10:5
|
|
|
|
|
LL | #[eii_declaration(bar)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error: `#[eii_declaration(...)]` is only valid on macros
|
|
--> $DIR/errors.rs:10:5
|
|
|
|
|
LL | #[eii_declaration(bar)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `#[eii_declaration(...)]` expects a list of one or two elements
|
|
--> $DIR/errors.rs:14:1
|
|
|
|
|
LL | #[eii_declaration]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `#[eii_declaration(...)]` expects a list of one or two elements
|
|
--> $DIR/errors.rs:15:1
|
|
|
|
|
LL | #[eii_declaration()]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: expected this argument to be "unsafe"
|
|
--> $DIR/errors.rs:16:24
|
|
|
|
|
LL | #[eii_declaration(bar, hello)]
|
|
| ^^^^^
|
|
|
|
|
note: the second argument is optional
|
|
--> $DIR/errors.rs:16:24
|
|
|
|
|
LL | #[eii_declaration(bar, hello)]
|
|
| ^^^^^
|
|
|
|
error: `#[eii_declaration(...)]` expects a list of one or two elements
|
|
--> $DIR/errors.rs:17:1
|
|
|
|
|
LL | #[eii_declaration(bar, "unsafe", hello)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `#[eii_declaration(...)]` expects a list of one or two elements
|
|
--> $DIR/errors.rs:18:1
|
|
|
|
|
LL | #[eii_declaration(bar, hello, "unsafe")]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `#[eii_declaration(...)]` expects a list of one or two elements
|
|
--> $DIR/errors.rs:19:1
|
|
|
|
|
LL | #[eii_declaration = "unsafe"]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `#[foo]` is only valid on functions and statics
|
|
--> $DIR/errors.rs:28:1
|
|
|
|
|
LL | #[foo]
|
|
| ^^^^^^
|
|
|
|
error: `#[foo]` is only valid on functions and statics
|
|
--> $DIR/errors.rs:30:1
|
|
|
|
|
LL | #[foo]
|
|
| ^^^^^^
|
|
|
|
error: `#[foo]` expected no arguments or a single argument: `#[foo(default)]`
|
|
--> $DIR/errors.rs:33:1
|
|
|
|
|
LL | #[foo()]
|
|
| ^^^^^^^^
|
|
|
|
error: `#[foo]` expected no arguments or a single argument: `#[foo(default)]`
|
|
--> $DIR/errors.rs:35:1
|
|
|
|
|
LL | #[foo(default, bar)]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: `#[foo]` expected no arguments or a single argument: `#[foo(default)]`
|
|
--> $DIR/errors.rs:37:1
|
|
|
|
|
LL | #[foo("default")]
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: `#[foo]` expected no arguments or a single argument: `#[foo(default)]`
|
|
--> $DIR/errors.rs:39:1
|
|
|
|
|
LL | #[foo = "default"]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 15 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|