summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/reborrow-mut-upvar.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generator/reborrow-mut-upvar.stderr')
-rw-r--r--tests/ui/generator/reborrow-mut-upvar.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/generator/reborrow-mut-upvar.stderr b/tests/ui/generator/reborrow-mut-upvar.stderr
new file mode 100644
index 000000000..2e1fec35e
--- /dev/null
+++ b/tests/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: generators are lazy and do nothing unless resumed
+ = note: `#[warn(unused_must_use)]` on by default
+
+warning: 1 warning emitted
+