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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(custom_inner_attributes)] to the crate attributes to enable
|
|
|
|
|
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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(custom_inner_attributes)] to the crate attributes to enable
|
|
|
|
|
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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
|
|
|
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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: procedural macros cannot be expanded to types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/proc-macro-gates.rs:53:13
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
LL | let _x: identity!(u32) = 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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: procedural macros cannot be expanded to patterns
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/proc-macro-gates.rs:54: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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: procedural macros cannot be expanded to statements
|
2019-05-21 17:09:58 -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!(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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: procedural macros cannot be expanded to statements
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:58: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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: procedural macros cannot be expanded to expressions
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:60: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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
2019-04-10 18:40:12 -05:00
|
|
|
error[E0658]: procedural macros cannot be expanded to expressions
|
2019-05-21 17:09:58 -05:00
|
|
|
--> $DIR/proc-macro-gates.rs:61: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
|
2018-12-02 13:27:37 -06:00
|
|
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
|
|
|
|
|
|
|
|
error: aborting due to 17 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|