summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-67971.stderr
blob: 5d07f9cc748ea41c8f77dd6456a32a31469a1c98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0609]: no field `sleep` on type `&mut S`
  --> $DIR/issue-67971.rs:5:9
   |
LL |     ctx.sleep = 0;
   |         ^^^^^ unknown field

error[E0308]: mismatched types
  --> $DIR/issue-67971.rs:3:24
   |
LL | fn foo(ctx: &mut S) -> String {
   |    ---                 ^^^^^^ expected struct `String`, found `()`
   |    |
   |    implicitly returns `()` as its body has no tail or `return` expression

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0308, E0609.
For more information about an error, try `rustc --explain E0308`.