Files
rust/tests/ui/reachable/issue-948.rs

16 lines
256 B
Rust
Raw Normal View History

//@ run-fail
//@ error-pattern:beep boop
//@ needs-subprocess
2014-10-27 15:37:07 -07:00
#![allow(unused_variables)]
2013-08-17 08:37:42 -07:00
2016-05-27 08:09:36 +05:30
struct Point {
x: isize,
y: isize,
}
fn main() {
2016-05-27 08:09:36 +05:30
let origin = Point { x: 0, y: 0 };
let f: Point = Point { x: (panic!("beep boop")), ..origin };
}