summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-11771.rs
blob: c69cd1e79e3725f2a3a2bd102a171f37b493e13c (plain)
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    let x = ();
    1 +
    x //~^ ERROR E0277
    ;

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