|
| 1 | +error[E0659]: `repr` is ambiguous |
| 2 | + --> $DIR/ambiguous-builtin-attrs.rs:9:3 |
| 3 | + | |
| 4 | +LL | #[repr(C)] //~ ERROR `repr` is ambiguous |
| 5 | + | ^^^^ ambiguous name |
| 6 | + | |
| 7 | +note: `repr` could refer to the name imported here |
| 8 | + --> $DIR/ambiguous-builtin-attrs.rs:7:5 |
| 9 | + | |
| 10 | +LL | use builtin_attrs::*; |
| 11 | + | ^^^^^^^^^^^^^^^^ |
| 12 | +note: `repr` could also refer to the name defined here |
| 13 | + --> $DIR/ambiguous-builtin-attrs.rs:9:3 |
| 14 | + | |
| 15 | +LL | #[repr(C)] //~ ERROR `repr` is ambiguous |
| 16 | + | ^^^^ |
| 17 | + = note: consider adding an explicit import of `repr` to disambiguate |
| 18 | + |
| 19 | +error[E0659]: `repr` is ambiguous |
| 20 | + --> $DIR/ambiguous-builtin-attrs.rs:11:19 |
| 21 | + | |
| 22 | +LL | #[cfg_attr(all(), repr(C))] //~ ERROR `repr` is ambiguous |
| 23 | + | ^^^^ ambiguous name |
| 24 | + | |
| 25 | +note: `repr` could refer to the name imported here |
| 26 | + --> $DIR/ambiguous-builtin-attrs.rs:7:5 |
| 27 | + | |
| 28 | +LL | use builtin_attrs::*; |
| 29 | + | ^^^^^^^^^^^^^^^^ |
| 30 | +note: `repr` could also refer to the name defined here |
| 31 | + --> $DIR/ambiguous-builtin-attrs.rs:11:19 |
| 32 | + | |
| 33 | +LL | #[cfg_attr(all(), repr(C))] //~ ERROR `repr` is ambiguous |
| 34 | + | ^^^^ |
| 35 | + = note: consider adding an explicit import of `repr` to disambiguate |
| 36 | + |
| 37 | +error[E0659]: `cfg` is ambiguous |
| 38 | + --> $DIR/ambiguous-builtin-attrs.rs:14:3 |
| 39 | + | |
| 40 | +LL | #[cfg(all())] //~ ERROR `cfg` is ambiguous |
| 41 | + | ^^^ ambiguous name |
| 42 | + | |
| 43 | +note: `cfg` could refer to the name imported here |
| 44 | + --> $DIR/ambiguous-builtin-attrs.rs:7:5 |
| 45 | + | |
| 46 | +LL | use builtin_attrs::*; |
| 47 | + | ^^^^^^^^^^^^^^^^ |
| 48 | +note: `cfg` could also refer to the name defined here |
| 49 | + --> $DIR/ambiguous-builtin-attrs.rs:14:3 |
| 50 | + | |
| 51 | +LL | #[cfg(all())] //~ ERROR `cfg` is ambiguous |
| 52 | + | ^^^ |
| 53 | + = note: consider adding an explicit import of `cfg` to disambiguate |
| 54 | + |
| 55 | +error[E0659]: `repr` is ambiguous |
| 56 | + --> $DIR/ambiguous-builtin-attrs.rs:33:34 |
| 57 | + | |
| 58 | +LL | fn non_macro_expanded_location<#[repr(C)] T>() { //~ ERROR `repr` is ambiguous |
| 59 | + | ^^^^ ambiguous name |
| 60 | + | |
| 61 | +note: `repr` could refer to the name imported here |
| 62 | + --> $DIR/ambiguous-builtin-attrs.rs:7:5 |
| 63 | + | |
| 64 | +LL | use builtin_attrs::*; |
| 65 | + | ^^^^^^^^^^^^^^^^ |
| 66 | +note: `repr` could also refer to the name defined here |
| 67 | + --> $DIR/ambiguous-builtin-attrs.rs:33:34 |
| 68 | + | |
| 69 | +LL | fn non_macro_expanded_location<#[repr(C)] T>() { //~ ERROR `repr` is ambiguous |
| 70 | + | ^^^^ |
| 71 | + = note: consider adding an explicit import of `repr` to disambiguate |
| 72 | + |
| 73 | +error[E0659]: `repr` is ambiguous |
| 74 | + --> $DIR/ambiguous-builtin-attrs.rs:35:11 |
| 75 | + | |
| 76 | +LL | #[repr(C)] //~ ERROR `repr` is ambiguous |
| 77 | + | ^^^^ ambiguous name |
| 78 | + | |
| 79 | +note: `repr` could refer to the name imported here |
| 80 | + --> $DIR/ambiguous-builtin-attrs.rs:7:5 |
| 81 | + | |
| 82 | +LL | use builtin_attrs::*; |
| 83 | + | ^^^^^^^^^^^^^^^^ |
| 84 | +note: `repr` could also refer to the name defined here |
| 85 | + --> $DIR/ambiguous-builtin-attrs.rs:35:11 |
| 86 | + | |
| 87 | +LL | #[repr(C)] //~ ERROR `repr` is ambiguous |
| 88 | + | ^^^^ |
| 89 | + = note: consider adding an explicit import of `repr` to disambiguate |
| 90 | + |
| 91 | +error[E0659]: `feature` is ambiguous |
| 92 | + --> $DIR/ambiguous-builtin-attrs.rs:3:4 |
| 93 | + | |
| 94 | +LL | #![feature(decl_macro)] //~ ERROR `feature` is ambiguous |
| 95 | + | ^^^^^^^ ambiguous name |
| 96 | + | |
| 97 | +note: `feature` could refer to the name imported here |
| 98 | + --> $DIR/ambiguous-builtin-attrs.rs:7:5 |
| 99 | + | |
| 100 | +LL | use builtin_attrs::*; |
| 101 | + | ^^^^^^^^^^^^^^^^ |
| 102 | +note: `feature` could also refer to the name defined here |
| 103 | + --> $DIR/ambiguous-builtin-attrs.rs:3:4 |
| 104 | + | |
| 105 | +LL | #![feature(decl_macro)] //~ ERROR `feature` is ambiguous |
| 106 | + | ^^^^^^^ |
| 107 | + = note: consider adding an explicit import of `feature` to disambiguate |
| 108 | + |
| 109 | +error[E0425]: cannot find value `NonExistent` in this scope |
| 110 | + --> $DIR/ambiguous-builtin-attrs.rs:43:5 |
| 111 | + | |
| 112 | +LL | NonExistent; //~ ERROR cannot find value `NonExistent` in this scope |
| 113 | + | ^^^^^^^^^^^ not found in this scope |
| 114 | + |
| 115 | +error: aborting due to 7 previous errors |
| 116 | + |
| 117 | +Some errors occurred: E0425, E0659. |
| 118 | +For more information about an error, try `rustc --explain E0425`. |
0 commit comments