]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/proc-macro/macro-namespace-reserved-2.stderr
resolve: Consolidate error reporting for resolved macros in `fn resolve_macro_to_def`
[rust.git] / src / test / ui-fulldeps / proc-macro / macro-namespace-reserved-2.stderr
1 error: can't use a procedural macro from the same crate that defines it
2   --> $DIR/macro-namespace-reserved-2.rs:34:5
3    |
4 LL |     my_macro!(); //~ ERROR can't use a procedural macro from the same crate that defines it
5    |     ^^^^^^^^
6
7 error: can't use a procedural macro from the same crate that defines it
8   --> $DIR/macro-namespace-reserved-2.rs:37:5
9    |
10 LL |     my_macro_attr!(); //~ ERROR can't use a procedural macro from the same crate that defines it
11    |     ^^^^^^^^^^^^^
12
13 error: can't use a procedural macro from the same crate that defines it
14   --> $DIR/macro-namespace-reserved-2.rs:40:5
15    |
16 LL |     MyTrait!(); //~ ERROR can't use a procedural macro from the same crate that defines it
17    |     ^^^^^^^
18
19 error: can't use a procedural macro from the same crate that defines it
20   --> $DIR/macro-namespace-reserved-2.rs:44:3
21    |
22 LL | #[my_macro] //~ ERROR can't use a procedural macro from the same crate that defines it
23    |   ^^^^^^^^
24
25 error: can't use a procedural macro from the same crate that defines it
26   --> $DIR/macro-namespace-reserved-2.rs:46:3
27    |
28 LL | #[my_macro_attr] //~ ERROR can't use a procedural macro from the same crate that defines it
29    |   ^^^^^^^^^^^^^
30
31 error: can't use a procedural macro from the same crate that defines it
32   --> $DIR/macro-namespace-reserved-2.rs:48:3
33    |
34 LL | #[MyTrait] //~ ERROR can't use a procedural macro from the same crate that defines it
35    |   ^^^^^^^
36
37 error: can't use a procedural macro from the same crate that defines it
38   --> $DIR/macro-namespace-reserved-2.rs:50:10
39    |
40 LL | #[derive(my_macro)] //~ ERROR can't use a procedural macro from the same crate that defines it
41    |          ^^^^^^^^
42
43 error: can't use a procedural macro from the same crate that defines it
44   --> $DIR/macro-namespace-reserved-2.rs:52:10
45    |
46 LL | #[derive(my_macro_attr)] //~ ERROR can't use a procedural macro from the same crate that defines it
47    |          ^^^^^^^^^^^^^
48
49 error: can't use a procedural macro from the same crate that defines it
50   --> $DIR/macro-namespace-reserved-2.rs:54:10
51    |
52 LL | #[derive(MyTrait)] //~ ERROR can't use a procedural macro from the same crate that defines it
53    |          ^^^^^^^
54
55 error: aborting due to 9 previous errors
56