2017-12-06 09:27:47 +01:00
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:10:1
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
2019-01-02 02:21:05 +03:00
|
|
|
LL | #[proc_macro_derive()]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:18:17
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
2019-01-02 02:21:05 +03:00
|
|
|
LL | mod inner { #![proc_macro_derive()] }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
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
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:21:5
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
2019-01-02 02:21:05 +03:00
|
|
|
LL | #[proc_macro_derive()] fn f() { }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:24:5
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
2019-01-02 02:21:05 +03:00
|
|
|
LL | #[proc_macro_derive()] struct S;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:27:5
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
2019-01-02 02:21:05 +03:00
|
|
|
LL | #[proc_macro_derive()] type T = S;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
|
|
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-43106-gating-of-proc_macro_derive.rs:30:5
|
2017-12-06 09:27:47 +01:00
|
|
|
|
|
2019-01-02 02:21:05 +03:00
|
|
|
LL | #[proc_macro_derive()] 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
|
|
|
|