summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generator/reborrow-mut-upvar.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generator/reborrow-mut-upvar.stderr')
-rw-r--r--src/test/ui/generator/reborrow-mut-upvar.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/generator/reborrow-mut-upvar.stderr b/src/test/ui/generator/reborrow-mut-upvar.stderr
new file mode 100644
index 000000000..ff511b766
--- /dev/null
+++ b/src/test/ui/generator/reborrow-mut-upvar.stderr
@@ -0,0 +1,17 @@
+warning: unused generator that must be used
+ --> $DIR/reborrow-mut-upvar.rs:6:5
+ |
+LL | / || {
+LL | | {
+LL | | let _baz = &*bar;
+LL | | yield;
+... |
+LL | | *bar = 2;
+LL | | };
+ | |______^
+ |
+ = note: `#[warn(unused_must_use)]` on by default
+ = note: generators are lazy and do nothing unless resumed
+
+warning: 1 warning emitted
+