mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
c6a166bac2
- merge error codes - use attribute name that is incompatible in error message - add test for conditional incompatible attribute - add `linkage` to the allowlist
35 lines
988 B
Plaintext
35 lines
988 B
Plaintext
error[E0736]: attribute incompatible with `#[naked]`
|
|
--> $DIR/error-with-naked.rs:6:1
|
|
|
|
|
LL | #[track_caller]
|
|
| ^^^^^^^^^^^^^^^ the `track_caller` attribute is incompatible with `#[naked]`
|
|
LL |
|
|
LL | #[naked]
|
|
| -------- function marked with `#[naked]` here
|
|
|
|
error[E0736]: attribute incompatible with `#[naked]`
|
|
--> $DIR/error-with-naked.rs:18:5
|
|
|
|
|
LL | #[track_caller]
|
|
| ^^^^^^^^^^^^^^^ the `track_caller` attribute is incompatible with `#[naked]`
|
|
LL |
|
|
LL | #[naked]
|
|
| -------- function marked with `#[naked]` here
|
|
|
|
error[E0737]: `#[track_caller]` requires Rust ABI
|
|
--> $DIR/error-with-naked.rs:6:1
|
|
|
|
|
LL | #[track_caller]
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error[E0737]: `#[track_caller]` requires Rust ABI
|
|
--> $DIR/error-with-naked.rs:18:5
|
|
|
|
|
LL | #[track_caller]
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
Some errors have detailed explanations: E0736, E0737.
|
|
For more information about an error, try `rustc --explain E0736`.
|