2017-08-22 21:22:52 -05:00
|
|
|
// This test checks cases where the derive-macro does not exist.
|
2017-07-11 07:30:10 -05:00
|
|
|
|
|
|
|
mod derive {
|
|
|
|
#[derive(x3300)]
|
|
|
|
//~^ ERROR cannot find derive macro `x3300` in this scope
|
2020-01-08 11:02:10 -06:00
|
|
|
//~| ERROR cannot find derive macro `x3300` in this scope
|
2017-07-11 07:30:10 -05:00
|
|
|
union U { f: i32 }
|
|
|
|
|
|
|
|
#[derive(x3300)]
|
|
|
|
//~^ ERROR cannot find derive macro `x3300` in this scope
|
2020-01-08 11:02:10 -06:00
|
|
|
//~| ERROR cannot find derive macro `x3300` in this scope
|
2017-07-11 07:30:10 -05:00
|
|
|
enum E { }
|
|
|
|
|
|
|
|
#[derive(x3300)]
|
|
|
|
//~^ ERROR cannot find derive macro `x3300` in this scope
|
2020-01-08 11:02:10 -06:00
|
|
|
//~| ERROR cannot find derive macro `x3300` in this scope
|
2017-07-11 07:30:10 -05:00
|
|
|
struct S;
|
|
|
|
}
|
2018-12-16 11:23:27 -06:00
|
|
|
|
|
|
|
fn main() {}
|