summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-67971.rs
blob: 8bf725cb5ee38129377237df1aafdaf074432f19 (plain)
1
2
3
4
5
6
7
8
9
struct S {}

fn foo(ctx: &mut S) -> String { //~ ERROR mismatched types
    // Don't suggest to remove semicolon as it won't fix anything
    ctx.sleep = 0;
    //~^ ERROR no field `sleep` on type `&mut S`
}

fn main() {}