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