rust/tests/ui/issues/issue-11771.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
125 B
Rust
Raw Normal View History

2014-11-02 17:58:00 -06:00
fn main() {
let x = ();
1 +
x //~^ ERROR E0277
2014-11-02 17:58:00 -06:00
;
let x: () = ();
1 +
x //~^ ERROR E0277
2014-11-02 17:58:00 -06:00
;
}