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