blob: 1cbba935402a90a398c23516952e496a392a0c15 [file] [log] [blame] [edit]
#[allow(non_camel_case_types)]
struct foo;
struct Thing {
foo: String,
}
fn example(t: Thing) {
let Thing { foo } = t; //~ ERROR mismatched types
}
fn main() {}