summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-948.rs
blob: b9bbeb3951e4750dd52e787583f3e7c5da6e5699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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 };
}