mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-20 04:24:41 +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();
|
|
}
|