2024-05-16 02:08:26 -05:00
|
|
|
error: expected identifier, found keyword `unsafe`
|
2024-08-07 01:36:28 -05:00
|
|
|
--> $DIR/double-unsafe-attributes.rs:1:10
|
2024-05-16 02:08:26 -05:00
|
|
|
|
|
|
|
|
LL | #[unsafe(unsafe(no_mangle))]
|
|
|
|
| ^^^^^^ expected identifier, found keyword
|
|
|
|
|
|
|
|
|
help: escape `unsafe` to use it as an identifier
|
|
|
|
|
|
|
|
|
LL | #[unsafe(r#unsafe(no_mangle))]
|
|
|
|
| ++
|
|
|
|
|
|
|
|
error: `r#unsafe` is not an unsafe attribute
|
2024-08-07 01:36:28 -05:00
|
|
|
--> $DIR/double-unsafe-attributes.rs:1:3
|
2024-05-16 02:08:26 -05:00
|
|
|
|
|
|
|
|
LL | #[unsafe(unsafe(no_mangle))]
|
2024-07-09 19:06:49 -05:00
|
|
|
| ^^^^^^ this is not an unsafe attribute
|
2024-05-16 02:08:26 -05:00
|
|
|
|
|
|
|
|
= note: extraneous unsafe is not allowed in attributes
|
|
|
|
|
2024-06-08 18:39:09 -05:00
|
|
|
error: cannot find attribute `r#unsafe` in this scope
|
2024-08-07 01:36:28 -05:00
|
|
|
--> $DIR/double-unsafe-attributes.rs:1:10
|
2024-06-08 18:39:09 -05:00
|
|
|
|
|
|
|
|
LL | #[unsafe(unsafe(no_mangle))]
|
|
|
|
| ^^^^^^
|
|
|
|
|
2024-05-16 02:08:26 -05:00
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|