]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-21763.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / issues / issue-21763.stderr
index 4d27f507e26e8cab03561381fe33231a2f99e137..b8b38c0a723e94c131778d17de5e2b47cd20d476 100644 (file)
@@ -1,9 +1,6 @@
 error[E0277]: `Rc<()>` cannot be sent between threads safely
   --> $DIR/issue-21763.rs:9:5
    |
-LL | fn foo<T: Send>() {}
-   |           ---- required by this bound in `foo`
-...
 LL |     foo::<HashMap<Rc<()>, Rc<()>>>();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Rc<()>` cannot be sent between threads safely
    |
@@ -12,6 +9,11 @@ LL |     foo::<HashMap<Rc<()>, Rc<()>>>();
    = note: required because of the requirements on the impl of `Send` for `hashbrown::raw::RawTable<(Rc<()>, Rc<()>)>`
    = note: required because it appears within the type `hashbrown::map::HashMap<Rc<()>, Rc<()>, RandomState>`
    = note: required because it appears within the type `HashMap<Rc<()>, Rc<()>>`
+note: required by a bound in `foo`
+  --> $DIR/issue-21763.rs:6:11
+   |
+LL | fn foo<T: Send>() {}
+   |           ^^^^ required by this bound in `foo`
 
 error: aborting due to previous error