2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: non-builtin inner attributes are unstable
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:10:5
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | #![empty_attr]
|
|
|
|
| ^^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54726
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: non-builtin inner attributes are unstable
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:17:5
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | #![empty_attr]
|
|
|
|
| ^^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54726
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: custom attributes cannot be applied to modules
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:13:1
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | #[empty_attr]
|
|
|
|
| ^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: custom attributes cannot be applied to modules
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:17:5
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | #![empty_attr]
|
|
|
|
| ^^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-07-23 13:03:20 -05:00
|
|
|
error: custom attribute invocations must be of the form `#[foo]` or `#[foo(..)]`, the macro name must only be followed by a delimiter token
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:21:1
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | #[empty_attr = "y"]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: custom attributes cannot be applied to statements
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:30:5
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | #[empty_attr]
|
|
|
|
| ^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: custom attributes cannot be applied to statements
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:34:5
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | #[empty_attr]
|
|
|
|
| ^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: custom attributes cannot be applied to statements
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:38:5
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | #[empty_attr]
|
|
|
|
| ^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: custom attributes cannot be applied to expressions
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:42:14
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | let _x = #[identity_attr] 2;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: custom attributes cannot be applied to expressions
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:45:15
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | let _x = [#[identity_attr] 2];
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: custom attributes cannot be applied to expressions
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:48:14
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | let _x = #[identity_attr] println!();
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: procedural macros cannot be expanded to patterns
|
2019-08-26 19:48:48 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:53:12
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | if let identity!(Some(_x)) = Some(3) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: procedural macros cannot be expanded to statements
|
2019-08-26 19:48:48 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:56:5
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | empty!(struct S;);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: procedural macros cannot be expanded to statements
|
2019-08-26 19:48:48 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:57:5
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | empty!(let _x = 3;);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: procedural macros cannot be expanded to expressions
|
2019-08-26 19:48:48 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:59:14
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | let _x = identity!(3);
|
|
|
|
| ^^^^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: procedural macros cannot be expanded to expressions
|
2019-08-26 19:48:48 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:60:15
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | let _x = [empty!(3)];
|
|
|
|
| ^^^^^^^^^
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-04-11 13:42:06 -05:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54727
|
2019-07-09 04:32:08 -05:00
|
|
|
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-08-26 19:48:48 -05:00
|
|
|
error: aborting due to 16 previous errors
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|