mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +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();
|
|
}
|