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