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