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() {}