]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tuple/tuple-struct-fields/test3.rs
Do not abort compilation if expansion produces errors
[rust.git] / src / test / ui / tuple / tuple-struct-fields / test3.rs
1 macro_rules! define_struct {
2     ($t:ty) => {
3         struct S1(pub($t));
4         struct S2(pub (in foo) ());
5         struct S3(pub($t) ());
6         //~^ ERROR expected one of `)` or `,`, found `(`
7     }
8 }
9
10 mod foo {
11     define_struct! { foo } //~ ERROR cannot find type `foo` in this scope
12 }
13
14 fn main() {}