summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-67971.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/typeck/issue-67971.stderr')
-rw-r--r--src/test/ui/typeck/issue-67971.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/typeck/issue-67971.stderr b/src/test/ui/typeck/issue-67971.stderr
new file mode 100644
index 000000000..5d07f9cc7
--- /dev/null
+++ b/src/test/ui/typeck/issue-67971.stderr
@@ -0,0 +1,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`.