2018-11-04 16:00:31 -06:00
|
|
|
error[E0425]: cannot find value `NonExistent` in this scope
|
2021-02-01 08:35:53 -06:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:34:5
|
2018-11-04 16:00:31 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | NonExistent;
|
2018-11-04 16:00:31 -06:00
|
|
|
| ^^^^^^^^^^^ not found in this scope
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `repr` is ambiguous
|
2018-09-02 16:04:54 -05:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:9:3
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[repr(C)]
|
2018-09-02 16:04:54 -05:00
|
|
|
| ^^^^ ambiguous name
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a name conflict with a builtin attribute
|
2018-11-04 16:11:59 -06:00
|
|
|
= note: `repr` could refer to a built-in attribute
|
|
|
|
note: `repr` could also refer to the attribute macro imported here
|
2021-01-08 03:00:39 -06:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:6:5
|
2018-09-02 16:04:54 -05:00
|
|
|
|
|
|
|
|
LL | use builtin_attrs::*;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-11-25 07:08:43 -06:00
|
|
|
= help: use `crate::repr` to refer to this attribute macro unambiguously
|
2018-09-02 16:04:54 -05:00
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `repr` is ambiguous
|
2018-09-02 16:04:54 -05:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:11:19
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[cfg_attr(all(), repr(C))]
|
2018-09-02 16:04:54 -05:00
|
|
|
| ^^^^ ambiguous name
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a name conflict with a builtin attribute
|
2018-11-04 16:11:59 -06:00
|
|
|
= note: `repr` could refer to a built-in attribute
|
|
|
|
note: `repr` could also refer to the attribute macro imported here
|
2021-01-08 03:00:39 -06:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:6:5
|
2018-09-02 16:04:54 -05:00
|
|
|
|
|
|
|
|
LL | use builtin_attrs::*;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-11-25 07:08:43 -06:00
|
|
|
= help: use `crate::repr` to refer to this attribute macro unambiguously
|
2018-09-02 16:04:54 -05:00
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `repr` is ambiguous
|
2018-09-10 16:30:21 -05:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:20:34
|
2018-09-02 16:04:54 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn non_macro_expanded_location<#[repr(C)] T>() {
|
2018-09-02 16:04:54 -05:00
|
|
|
| ^^^^ ambiguous name
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a name conflict with a builtin attribute
|
2018-11-04 16:11:59 -06:00
|
|
|
= note: `repr` could refer to a built-in attribute
|
|
|
|
note: `repr` could also refer to the attribute macro imported here
|
2021-01-08 03:00:39 -06:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:6:5
|
2018-09-02 16:04:54 -05:00
|
|
|
|
|
|
|
|
LL | use builtin_attrs::*;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-11-25 07:08:43 -06:00
|
|
|
= help: use `crate::repr` to refer to this attribute macro unambiguously
|
2018-09-02 16:04:54 -05:00
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `repr` is ambiguous
|
2020-11-15 07:03:30 -06:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:24:11
|
2018-09-02 16:04:54 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[repr(C)]
|
2018-09-02 16:04:54 -05:00
|
|
|
| ^^^^ ambiguous name
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a name conflict with a builtin attribute
|
2018-11-04 16:11:59 -06:00
|
|
|
= note: `repr` could refer to a built-in attribute
|
|
|
|
note: `repr` could also refer to the attribute macro imported here
|
2021-01-08 03:00:39 -06:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:6:5
|
2018-09-02 16:04:54 -05:00
|
|
|
|
|
|
|
|
LL | use builtin_attrs::*;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-11-25 07:08:43 -06:00
|
|
|
= help: use `crate::repr` to refer to this attribute macro unambiguously
|
2018-09-02 16:04:54 -05:00
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `allow` is ambiguous
|
2021-02-01 09:43:16 -06:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:38:3
|
2020-12-13 10:34:04 -06:00
|
|
|
|
|
|
|
|
LL | #[allow(unused)]
|
|
|
|
| ^^^^^ ambiguous name
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a name conflict with a builtin attribute
|
2020-12-13 10:34:04 -06:00
|
|
|
= note: `allow` could refer to a built-in attribute
|
|
|
|
note: `allow` could also refer to the built-in attribute imported here
|
2021-02-01 09:43:16 -06:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:37:5
|
2020-12-13 10:34:04 -06:00
|
|
|
|
|
|
|
|
LL | use deny as allow;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
= help: use `crate::allow` to refer to this built-in attribute unambiguously
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `feature` is ambiguous
|
2018-09-02 16:04:54 -05:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:3:4
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #![feature(decl_macro)]
|
2018-09-02 16:04:54 -05:00
|
|
|
| ^^^^^^^ ambiguous name
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a name conflict with a builtin attribute
|
2018-11-04 16:11:59 -06:00
|
|
|
= note: `feature` could refer to a built-in attribute
|
|
|
|
note: `feature` could also refer to the attribute macro imported here
|
2021-01-08 03:00:39 -06:00
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:6:5
|
2018-09-02 16:04:54 -05:00
|
|
|
|
|
|
|
|
LL | use builtin_attrs::*;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2018-11-25 07:08:43 -06:00
|
|
|
= help: use `crate::feature` to refer to this attribute macro unambiguously
|
2018-09-02 16:04:54 -05:00
|
|
|
|
2020-11-15 07:03:30 -06:00
|
|
|
error[E0517]: attribute should be applied to a struct, enum, or union
|
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:20:39
|
|
|
|
|
|
|
|
|
LL | fn non_macro_expanded_location<#[repr(C)] T>() {
|
|
|
|
| ^ - not a struct, enum, or union
|
|
|
|
|
2021-02-01 08:35:53 -06:00
|
|
|
error[E0517]: attribute should be applied to a struct, enum, or union
|
|
|
|
--> $DIR/ambiguous-builtin-attrs.rs:24:16
|
|
|
|
|
|
|
|
|
LL | #[repr(C)]
|
|
|
|
| ^
|
|
|
|
...
|
|
|
|
LL | _ => {}
|
|
|
|
| ------- not a struct, enum, or union
|
|
|
|
|
2021-02-01 09:43:16 -06:00
|
|
|
error: aborting due to 9 previous errors
|
2018-09-02 16:04:54 -05:00
|
|
|
|
2020-11-15 07:03:30 -06:00
|
|
|
Some errors have detailed explanations: E0425, E0517, E0659.
|
2018-09-02 16:04:54 -05:00
|
|
|
For more information about an error, try `rustc --explain E0425`.
|