]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/unresolved-struct-with-fru.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / structs / unresolved-struct-with-fru.rs
1 struct S {
2     a: u32,
3 }
4
5 fn main() {
6     let s1 = S { a: 1 };
7
8     let _ = || {
9         let s2 = Oops { a: 2, ..s1 };
10         //~^ ERROR cannot find struct, variant or union type `Oops` in this scope
11     };
12 }