rust/src/test/ui/proc-macro/macro-namespace-reserved-2.stderr

73 lines
2.0 KiB
Plaintext
Raw Normal View History

error: can't use a procedural macro from the same crate that defines it
2018-12-25 09:56:47 -06:00
--> $DIR/macro-namespace-reserved-2.rs:25:5
|
2019-03-09 06:03:44 -06:00
LL | my_macro!();
| ^^^^^^^^
error: can't use a procedural macro from the same crate that defines it
2018-12-25 09:56:47 -06:00
--> $DIR/macro-namespace-reserved-2.rs:36:3
|
2019-03-09 06:03:44 -06:00
LL | #[my_macro_attr]
| ^^^^^^^^^^^^^
error: can't use a procedural macro from the same crate that defines it
2018-12-25 09:56:47 -06:00
--> $DIR/macro-namespace-reserved-2.rs:38:3
|
2019-03-09 06:03:44 -06:00
LL | #[MyTrait]
| ^^^^^^^
error: `MyTrait` is a derive macro
--> $DIR/macro-namespace-reserved-2.rs:38:1
|
LL | #[MyTrait]
| ^^^^^^^^^^
error: can't use a procedural macro from the same crate that defines it
--> $DIR/macro-namespace-reserved-2.rs:44:10
|
LL | #[derive(my_macro_attr)]
| ^^^^^^^^^^^^^
error: macro `my_macro_attr` may not be used for derive attributes
--> $DIR/macro-namespace-reserved-2.rs:44:10
|
2019-03-09 06:03:44 -06:00
LL | #[derive(my_macro_attr)]
| ^^^^^^^^^^^^^
error: can't use a procedural macro from the same crate that defines it
--> $DIR/macro-namespace-reserved-2.rs:47:10
|
2019-03-09 06:03:44 -06:00
LL | #[derive(MyTrait)]
| ^^^^^^^
error[E0658]: The attribute `my_macro` is currently unknown to the compiler and may have meaning added to it in the future
--> $DIR/macro-namespace-reserved-2.rs:34:3
|
LL | #[my_macro]
| ^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/29642
= help: add #![feature(custom_attribute)] to the crate attributes to enable
error: cannot find derive macro `my_macro` in this scope
--> $DIR/macro-namespace-reserved-2.rs:42:10
|
LL | #[derive(my_macro)]
| ^^^^^^^^
error: cannot find macro `my_macro_attr!` in this scope
--> $DIR/macro-namespace-reserved-2.rs:28:5
|
LL | my_macro_attr!();
| ^^^^^^^^^^^^^
error: cannot find macro `MyTrait!` in this scope
--> $DIR/macro-namespace-reserved-2.rs:31:5
|
LL | MyTrait!();
| ^^^^^^^
error: aborting due to 11 previous errors
For more information about this error, try `rustc --explain E0658`.