rust/tests/ui/suggestions/const-in-struct-pat.rs
2023-01-11 09:32:08 +00:00

12 lines
171 B
Rust

#[allow(non_camel_case_types)]
struct foo;
struct Thing {
foo: String,
}
fn example(t: Thing) {
let Thing { foo } = t; //~ ERROR mismatched types
}
fn main() {}