]>
Commit | Line | Data |
---|---|---|
f9f354fc XL |
1 | error[E0609]: no field `sleep` on type `&mut S` |
2 | --> $DIR/issue-67971.rs:5:9 | |
3 | | | |
4 | LL | ctx.sleep = 0; | |
5 | | ^^^^^ unknown field | |
6 | ||
7 | error[E0308]: mismatched types | |
8 | --> $DIR/issue-67971.rs:3:24 | |
9 | | | |
10 | LL | fn foo(ctx: &mut S) -> String { | |
1b1a35ee | 11 | | --- ^^^^^^ expected struct `String`, found `()` |
f9f354fc XL |
12 | | | |
13 | | implicitly returns `()` as its body has no tail or `return` expression | |
14 | ||
15 | error: aborting due to 2 previous errors | |
16 | ||
17 | Some errors have detailed explanations: E0308, E0609. | |
18 | For more information about an error, try `rustc --explain E0308`. |