]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-67971.stderr
Auto merge of #107663 - matthiaskrgr:107423-point-at-EOF-code, r=compiler-errors
[rust.git] / tests / ui / typeck / issue-67971.stderr
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 {
11    |    ---                 ^^^^^^ expected `String`, found `()`
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`.