]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-67971.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / typeck / issue-67971.rs
1 struct S {}
2
3 fn foo(ctx: &mut S) -> String { //~ ERROR mismatched types
4     // Don't suggest to remove semicolon as it won't fix anything
5     ctx.sleep = 0;
6     //~^ ERROR no field `sleep` on type `&mut S`
7 }
8
9 fn main() {}