rust/src/test/ui/issues/issue-11771.rs
2018-12-25 21:08:33 -07:00

12 lines
125 B
Rust

fn main() {
let x = ();
1 +
x //~^ ERROR E0277
;
let x: () = ();
1 +
x //~^ ERROR E0277
;
}