blob: 95fc19f506b245bbd6bdb8d6567b99d2531667ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#[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
struct Foo;
#[unsafe(derive(Debug))] //~ ERROR: is not an unsafe attribute
struct Bar;
fn main() {}
|