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