]>
Commit | Line | Data |
---|---|---|
13cf67c4 | 1 | error[E0425]: cannot find value `NonExistent` in this scope |
fc512014 | 2 | --> $DIR/ambiguous-builtin-attrs.rs:32:5 |
13cf67c4 | 3 | | |
532ac7d7 | 4 | LL | NonExistent; |
13cf67c4 XL |
5 | | ^^^^^^^^^^^ not found in this scope |
6 | ||
7 | error[E0659]: `repr` is ambiguous (built-in attribute vs any other name) | |
b7449926 XL |
8 | --> $DIR/ambiguous-builtin-attrs.rs:9:3 |
9 | | | |
532ac7d7 | 10 | LL | #[repr(C)] |
b7449926 XL |
11 | | ^^^^ ambiguous name |
12 | | | |
13cf67c4 XL |
13 | = note: `repr` could refer to a built-in attribute |
14 | note: `repr` could also refer to the attribute macro imported here | |
b7449926 XL |
15 | --> $DIR/ambiguous-builtin-attrs.rs:7:5 |
16 | | | |
17 | LL | use builtin_attrs::*; | |
18 | | ^^^^^^^^^^^^^^^^ | |
13cf67c4 | 19 | = help: use `crate::repr` to refer to this attribute macro unambiguously |
b7449926 | 20 | |
13cf67c4 | 21 | error[E0659]: `repr` is ambiguous (built-in attribute vs any other name) |
b7449926 XL |
22 | --> $DIR/ambiguous-builtin-attrs.rs:11:19 |
23 | | | |
532ac7d7 | 24 | LL | #[cfg_attr(all(), repr(C))] |
b7449926 XL |
25 | | ^^^^ ambiguous name |
26 | | | |
13cf67c4 XL |
27 | = note: `repr` could refer to a built-in attribute |
28 | note: `repr` could also refer to the attribute macro imported here | |
b7449926 XL |
29 | --> $DIR/ambiguous-builtin-attrs.rs:7:5 |
30 | | | |
31 | LL | use builtin_attrs::*; | |
32 | | ^^^^^^^^^^^^^^^^ | |
13cf67c4 | 33 | = help: use `crate::repr` to refer to this attribute macro unambiguously |
b7449926 | 34 | |
13cf67c4 | 35 | error[E0659]: `repr` is ambiguous (built-in attribute vs any other name) |
b7449926 XL |
36 | --> $DIR/ambiguous-builtin-attrs.rs:20:34 |
37 | | | |
532ac7d7 | 38 | LL | 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 |
42 | note: `repr` could also refer to the attribute macro imported here | |
b7449926 XL |
43 | --> $DIR/ambiguous-builtin-attrs.rs:7:5 |
44 | | | |
45 | LL | use builtin_attrs::*; | |
46 | | ^^^^^^^^^^^^^^^^ | |
13cf67c4 | 47 | = help: use `crate::repr` to refer to this attribute macro unambiguously |
b7449926 | 48 | |
13cf67c4 | 49 | error[E0659]: `repr` is ambiguous (built-in attribute vs any other name) |
fc512014 | 50 | --> $DIR/ambiguous-builtin-attrs.rs:24:11 |
b7449926 | 51 | | |
532ac7d7 | 52 | LL | #[repr(C)] |
b7449926 XL |
53 | | ^^^^ ambiguous name |
54 | | | |
13cf67c4 XL |
55 | = note: `repr` could refer to a built-in attribute |
56 | note: `repr` could also refer to the attribute macro imported here | |
b7449926 XL |
57 | --> $DIR/ambiguous-builtin-attrs.rs:7:5 |
58 | | | |
59 | LL | use builtin_attrs::*; | |
60 | | ^^^^^^^^^^^^^^^^ | |
13cf67c4 | 61 | = help: use `crate::repr` to refer to this attribute macro unambiguously |
b7449926 | 62 | |
13cf67c4 | 63 | error[E0659]: `feature` is ambiguous (built-in attribute vs any other name) |
b7449926 XL |
64 | --> $DIR/ambiguous-builtin-attrs.rs:3:4 |
65 | | | |
532ac7d7 | 66 | LL | #![feature(decl_macro)] |
b7449926 XL |
67 | | ^^^^^^^ ambiguous name |
68 | | | |
13cf67c4 XL |
69 | = note: `feature` could refer to a built-in attribute |
70 | note: `feature` could also refer to the attribute macro imported here | |
b7449926 XL |
71 | --> $DIR/ambiguous-builtin-attrs.rs:7:5 |
72 | | | |
73 | LL | use builtin_attrs::*; | |
74 | | ^^^^^^^^^^^^^^^^ | |
13cf67c4 | 75 | = help: use `crate::feature` to refer to this attribute macro unambiguously |
b7449926 | 76 | |
fc512014 XL |
77 | error[E0517]: attribute should be applied to a struct, enum, or union |
78 | --> $DIR/ambiguous-builtin-attrs.rs:20:39 | |
79 | | | |
80 | LL | fn non_macro_expanded_location<#[repr(C)] T>() { | |
81 | | ^ - not a struct, enum, or union | |
82 | ||
83 | error: aborting due to 7 previous errors | |
b7449926 | 84 | |
fc512014 | 85 | Some errors have detailed explanations: E0425, E0517, E0659. |
b7449926 | 86 | For more information about an error, try `rustc --explain E0425`. |