]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/ambiguous-builtin-attrs.stderr
Rollup merge of #82087 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / proc-macro / ambiguous-builtin-attrs.stderr
1 error[E0425]: cannot find value `NonExistent` in this scope
2   --> $DIR/ambiguous-builtin-attrs.rs:34:5
3    |
4 LL |     NonExistent;
5    |     ^^^^^^^^^^^ not found in this scope
6
7 error[E0659]: `repr` is ambiguous (built-in attribute vs any other name)
8   --> $DIR/ambiguous-builtin-attrs.rs:9:3
9    |
10 LL | #[repr(C)]
11    |   ^^^^ ambiguous name
12    |
13    = note: `repr` could refer to a built-in attribute
14 note: `repr` could also refer to the attribute macro imported here
15   --> $DIR/ambiguous-builtin-attrs.rs:6:5
16    |
17 LL | use builtin_attrs::*;
18    |     ^^^^^^^^^^^^^^^^
19    = help: use `crate::repr` to refer to this attribute macro unambiguously
20
21 error[E0659]: `repr` is ambiguous (built-in attribute vs any other name)
22   --> $DIR/ambiguous-builtin-attrs.rs:11:19
23    |
24 LL | #[cfg_attr(all(), repr(C))]
25    |                   ^^^^ ambiguous name
26    |
27    = note: `repr` could refer to a built-in attribute
28 note: `repr` could also refer to the attribute macro imported here
29   --> $DIR/ambiguous-builtin-attrs.rs:6:5
30    |
31 LL | use builtin_attrs::*;
32    |     ^^^^^^^^^^^^^^^^
33    = help: use `crate::repr` to refer to this attribute macro unambiguously
34
35 error[E0659]: `repr` is ambiguous (built-in attribute vs any other name)
36   --> $DIR/ambiguous-builtin-attrs.rs:20:34
37    |
38 LL | fn non_macro_expanded_location<#[repr(C)] T>() {
39    |                                  ^^^^ ambiguous name
40    |
41    = note: `repr` could refer to a built-in attribute
42 note: `repr` could also refer to the attribute macro imported here
43   --> $DIR/ambiguous-builtin-attrs.rs:6:5
44    |
45 LL | use builtin_attrs::*;
46    |     ^^^^^^^^^^^^^^^^
47    = help: use `crate::repr` to refer to this attribute macro unambiguously
48
49 error[E0659]: `repr` is ambiguous (built-in attribute vs any other name)
50   --> $DIR/ambiguous-builtin-attrs.rs:24:11
51    |
52 LL |         #[repr(C)]
53    |           ^^^^ ambiguous name
54    |
55    = note: `repr` could refer to a built-in attribute
56 note: `repr` could also refer to the attribute macro imported here
57   --> $DIR/ambiguous-builtin-attrs.rs:6:5
58    |
59 LL | use builtin_attrs::*;
60    |     ^^^^^^^^^^^^^^^^
61    = help: use `crate::repr` to refer to this attribute macro unambiguously
62
63 error[E0659]: `allow` is ambiguous (built-in attribute vs any other name)
64   --> $DIR/ambiguous-builtin-attrs.rs:38:3
65    |
66 LL | #[allow(unused)]
67    |   ^^^^^ ambiguous name
68    |
69    = note: `allow` could refer to a built-in attribute
70 note: `allow` could also refer to the built-in attribute imported here
71   --> $DIR/ambiguous-builtin-attrs.rs:37:5
72    |
73 LL | use deny as allow;
74    |     ^^^^^^^^^^^^^
75    = help: use `crate::allow` to refer to this built-in attribute unambiguously
76
77 error[E0659]: `feature` is ambiguous (built-in attribute vs any other name)
78   --> $DIR/ambiguous-builtin-attrs.rs:3:4
79    |
80 LL | #![feature(decl_macro)]
81    |    ^^^^^^^ ambiguous name
82    |
83    = note: `feature` could refer to a built-in attribute
84 note: `feature` could also refer to the attribute macro imported here
85   --> $DIR/ambiguous-builtin-attrs.rs:6:5
86    |
87 LL | use builtin_attrs::*;
88    |     ^^^^^^^^^^^^^^^^
89    = help: use `crate::feature` to refer to this attribute macro unambiguously
90
91 error[E0517]: attribute should be applied to a struct, enum, or union
92   --> $DIR/ambiguous-builtin-attrs.rs:20:39
93    |
94 LL | fn non_macro_expanded_location<#[repr(C)] T>() {
95    |                                       ^   - not a struct, enum, or union
96
97 error[E0517]: attribute should be applied to a struct, enum, or union
98   --> $DIR/ambiguous-builtin-attrs.rs:24:16
99    |
100 LL |         #[repr(C)]
101    |                ^
102 ...
103 LL |         _ => {}
104    |         ------- not a struct, enum, or union
105
106 error: aborting due to 9 previous errors
107
108 Some errors have detailed explanations: E0425, E0517, E0659.
109 For more information about an error, try `rustc --explain E0425`.