2024-07-09 19:06:49 -05:00
|
|
|
error: expected identifier, found keyword `unsafe`
|
2024-08-07 01:36:28 -05:00
|
|
|
--> $DIR/derive-unsafe-attributes.rs:1:10
|
2024-04-23 07:50:53 -05:00
|
|
|
|
|
|
|
|
|
LL | #[derive(unsafe(Debug))]
|
2024-07-09 19:06:49 -05:00
|
|
|
| ^^^^^^ expected identifier, found keyword
|
|
|
|
|
|
|
|
|
|
|
help: escape `unsafe` to use it as an identifier
|
|
|
|
|
|
|
|
|
|
|
LL | #[derive(r#unsafe(Debug))]
|
|
|
|
|
| ++
|
|
|
|
|
|
|
|
|
|
error: traits in `#[derive(...)]` don't accept arguments
|
2024-08-07 01:36:28 -05:00
|
|
|
--> $DIR/derive-unsafe-attributes.rs:1:16
|
2024-07-09 19:06:49 -05:00
|
|
|
|
|
|
|
|
|
LL | #[derive(unsafe(Debug))]
|
|
|
|
|
| ^^^^^^^ help: remove the arguments
|
2024-04-23 07:50:53 -05:00
|
|
|
|
2024-07-02 23:52:16 -05:00
|
|
|
error: `derive` is not an unsafe attribute
|
2024-08-07 01:36:28 -05:00
|
|
|
--> $DIR/derive-unsafe-attributes.rs:10:3
|
2024-07-02 23:52:16 -05:00
|
|
|
|
|
|
|
|
|
LL | #[unsafe(derive(Debug))]
|
2024-07-09 19:06:49 -05:00
|
|
|
| ^^^^^^ this is not an unsafe attribute
|
2024-07-02 23:52:16 -05:00
|
|
|
|
|
|
|
|
|
= note: extraneous unsafe is not allowed in attributes
|
|
|
|
|
|
2024-07-09 19:06:49 -05:00
|
|
|
error: expected identifier, found keyword `unsafe`
|
2024-08-07 01:36:28 -05:00
|
|
|
--> $DIR/derive-unsafe-attributes.rs:1:10
|
2024-07-09 19:06:49 -05:00
|
|
|
|
|
|
|
|
|
LL | #[derive(unsafe(Debug))]
|
|
|
|
|
| ^^^^^^ expected identifier, found keyword
|
|
|
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
help: escape `unsafe` to use it as an identifier
|
|
|
|
|
|
|
|
|
|
|
LL | #[derive(r#unsafe(Debug))]
|
|
|
|
|
| ++
|
|
|
|
|
|
|
|
|
|
error: expected identifier, found keyword `unsafe`
|
2024-08-07 01:36:28 -05:00
|
|
|
--> $DIR/derive-unsafe-attributes.rs:1:10
|
2024-07-09 19:06:49 -05:00
|
|
|
|
|
|
|
|
|
LL | #[derive(unsafe(Debug))]
|
|
|
|
|
| ^^^^^^ expected identifier, found keyword
|
|
|
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
help: escape `unsafe` to use it as an identifier
|
|
|
|
|
|
|
|
|
|
|
LL | #[derive(r#unsafe(Debug))]
|
|
|
|
|
| ++
|
|
|
|
|
|
|
|
|
|
error: cannot find derive macro `r#unsafe` in this scope
|
2024-08-07 01:36:28 -05:00
|
|
|
--> $DIR/derive-unsafe-attributes.rs:1:10
|
2024-07-09 19:06:49 -05:00
|
|
|
|
|
|
|
|
|
LL | #[derive(unsafe(Debug))]
|
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
|
error: cannot find derive macro `r#unsafe` in this scope
|
2024-08-07 01:36:28 -05:00
|
|
|
--> $DIR/derive-unsafe-attributes.rs:1:10
|
2024-07-09 19:06:49 -05:00
|
|
|
|
|
|
|
|
|
LL | #[derive(unsafe(Debug))]
|
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2024-04-23 07:50:53 -05:00
|
|
|
|