mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
10 lines
222 B
Rust
10 lines
222 B
Rust
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() {}
|