]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/const-in-struct-pat.rs
Rollup merge of #107524 - cjgillot:both-storage, r=RalfJung
[rust.git] / tests / 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() {}