2024-07-09 19:06:49 -05:00
|
|
|
#[derive(unsafe(Debug))]
|
|
|
|
//~^ ERROR: expected identifier, found keyword `unsafe`
|
|
|
|
//~| ERROR: traits in `#[derive(...)]` don't accept arguments
|
|
|
|
//~| ERROR: expected identifier, found keyword `unsafe`
|
|
|
|
//~| ERROR: expected identifier, found keyword `unsafe`
|
|
|
|
//~| ERROR: cannot find derive macro `r#unsafe` in this scope
|
|
|
|
//~| ERROR: cannot find derive macro `r#unsafe` in this scope
|
2024-04-23 07:50:53 -05:00
|
|
|
struct Foo;
|
|
|
|
|
2024-07-02 23:52:16 -05:00
|
|
|
#[unsafe(derive(Debug))] //~ ERROR: is not an unsafe attribute
|
|
|
|
struct Bar;
|
|
|
|
|
2024-04-23 07:50:53 -05:00
|
|
|
fn main() {}
|