2017-12-06 08:27:47 +00:00
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:10:1
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
2019-01-01 23:21:05 +00:00
|
|
|
LL | #[proc_macro_derive()]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:18:17
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
2019-01-01 23:21:05 +00:00
|
|
|
LL | mod inner { #![proc_macro_derive()] }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:21:5
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
2019-01-01 23:21:05 +00:00
|
|
|
LL | #[proc_macro_derive()] fn f() { }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:24:5
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
2019-01-01 23:21:05 +00:00
|
|
|
LL | #[proc_macro_derive()] struct S;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:27:5
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
2019-01-01 23:21:05 +00:00
|
|
|
LL | #[proc_macro_derive()] type T = S;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:30:5
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
2019-01-01 23:21:05 +00:00
|
|
|
LL | #[proc_macro_derive()] impl S { }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 08:27:47 +00:00
|
|
|
|
2018-03-12 20:21:43 +00:00
|
|
|
error: aborting due to 6 previous errors
|
2017-12-06 08:27:47 +00:00
|
|
|
|