mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
13 lines
185 B
Rust
13 lines
185 B
Rust
#[derive(Clone)]
|
|
struct Point {
|
|
x: isize,
|
|
y: isize,
|
|
}
|
|
|
|
fn main() {
|
|
let mut origin: Point;
|
|
origin = Point { x: 10, ..origin };
|
|
//~^ ERROR E0381
|
|
origin.clone();
|
|
}
|