]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/const-in-struct-pat.rs
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / suggestions / const-in-struct-pat.rs
1 #[allow(non_camel_case_types)]
2 struct foo;
3 struct Thing {
4 foo: String,
5 }
6
7 fn example(t: Thing) {
8 let Thing { foo } = t; //~ ERROR mismatched types
9 }
10
11 fn main() {}