]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/unresolved-struct-with-fru.rs
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[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 }