summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/const-in-struct-pat.rs
blob: 1cbba935402a90a398c23516952e496a392a0c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
#[allow(non_camel_case_types)]
struct foo;
struct Thing {
    foo: String,
}

fn example(t: Thing) {
    let Thing { foo } = t; //~ ERROR mismatched types
}

fn main() {}