]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/unresolved-struct-with-fru.rs
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / 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 }