]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/issue-43106-gating-of-derive-2.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / issue-43106-gating-of-derive-2.rs
1 // This test checks cases where the derive-macro does not exist.
2
3 mod derive {
4     #[derive(x3300)]
5     //~^ ERROR cannot find derive macro `x3300` in this scope
6     //~| ERROR cannot find derive macro `x3300` in this scope
7     union U { f: i32 }
8
9     #[derive(x3300)]
10     //~^ ERROR cannot find derive macro `x3300` in this scope
11     //~| ERROR cannot find derive macro `x3300` in this scope
12     enum E { }
13
14     #[derive(x3300)]
15     //~^ ERROR cannot find derive macro `x3300` in this scope
16     //~| ERROR cannot find derive macro `x3300` in this scope
17     struct S;
18 }
19
20 fn main() {}