mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
12 lines
171 B
Rust
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() {}
|