]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/unresolved-struct-with-fru.rs
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[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 }