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