mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
16 lines
267 B
Rust
16 lines
267 B
Rust
// run-fail
|
|
// error-pattern:beep boop
|
|
// ignore-emscripten no processes
|
|
|
|
#![allow(unused_variables)]
|
|
|
|
struct Point {
|
|
x: isize,
|
|
y: isize,
|
|
}
|
|
|
|
fn main() {
|
|
let origin = Point { x: 0, y: 0 };
|
|
let f: Point = Point { x: (panic!("beep boop")), ..origin };
|
|
}
|