2017-12-06 09:27:47 +01:00
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:20:1
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[proc_macro_derive = "2500"]
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:28:17
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | mod inner { #![proc_macro_derive="2500"] }
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
|
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:31:5
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[proc_macro_derive = "2500"] fn f() { }
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:34:5
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[proc_macro_derive = "2500"] struct S;
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:37:5
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[proc_macro_derive = "2500"] type T = S;
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:40:5
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[proc_macro_derive = "2500"] impl S { }
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-03-12 13:21:43 -07:00
|
|
|
error: aborting due to 6 previous errors
|
2017-12-06 09:27:47 +01:00
|
|
|
|