mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +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
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
error[E0736]: cannot use `#[naked]` with testing attributes
|
|
--> $DIR/naked-functions-testattrs.rs:12:1
|
|
|
|
|
LL | #[test]
|
|
| ------- function marked with testing attribute here
|
|
LL | #[naked]
|
|
| ^^^^^^^^ `#[naked]` is incompatible with testing attributes
|
|
|
|
error[E0736]: cannot use `#[naked]` with testing attributes
|
|
--> $DIR/naked-functions-testattrs.rs:20:1
|
|
|
|
|
LL | #[test]
|
|
| ------- function marked with testing attribute here
|
|
LL | #[naked]
|
|
| ^^^^^^^^ `#[naked]` is incompatible with testing attributes
|
|
|
|
error[E0736]: cannot use `#[naked]` with testing attributes
|
|
--> $DIR/naked-functions-testattrs.rs:28:1
|
|
|
|
|
LL | #[test]
|
|
| ------- function marked with testing attribute here
|
|
LL | #[naked]
|
|
| ^^^^^^^^ `#[naked]` is incompatible with testing attributes
|
|
|
|
error[E0736]: cannot use `#[naked]` with testing attributes
|
|
--> $DIR/naked-functions-testattrs.rs:35:1
|
|
|
|
|
LL | #[bench]
|
|
| -------- function marked with testing attribute here
|
|
LL | #[naked]
|
|
| ^^^^^^^^ `#[naked]` is incompatible with testing attributes
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0736`.
|