mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
16 lines
262 B
Rust
16 lines
262 B
Rust
//@ run-rustfix
|
|
#![allow(dead_code)]
|
|
|
|
struct Bravery {
|
|
guts: String,
|
|
brains: String,
|
|
}
|
|
|
|
fn main() {
|
|
let guts = "mettle";
|
|
let _ = Bravery {
|
|
guts, //~ ERROR mismatched types
|
|
brains: guts.clone(), //~ ERROR mismatched types
|
|
};
|
|
}
|