rust/tests/ui/attributes/unsafe/double-unsafe-attributes.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
741 B
Plaintext
Raw Normal View History

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