]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/generator/print/generator-print-verbose-2.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / generator / print / generator-print-verbose-2.stderr
index fb2a5754dd3064ad762bc1623c74f0c2b1863016..1356fa5f15295db37399e3eff7463df577b4761c 100644 (file)
@@ -6,7 +6,16 @@ LL |     assert_send(|| {
    |
    = help: the trait `Sync` is not implemented for `Cell<i32>`
    = note: required because of the requirements on the impl of `Send` for `&'_#4r Cell<i32>`
-   = note: required because it appears within the type `[main::{closure#1} upvar_tys=(&'_#4r Cell<i32>) _#17t]`
+note: required because it's used within this generator
+  --> $DIR/generator-print-verbose-2.rs:19:17
+   |
+LL |       assert_send(|| {
+   |  _________________^
+LL | |
+LL | |         drop(&a);
+LL | |         yield;
+LL | |     });
+   | |_____^
 note: required by a bound in `assert_send`
   --> $DIR/generator-print-verbose-2.rs:10:23
    |