]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr
Rollup merge of #103163 - SUPERCILEX:uninit-array-assume2, r=scottmcm
[rust.git] / src / test / ui / builtin-superkinds / builtin-superkinds-typaram-not-send.stderr
index ad80b3fa8d11f39b97a2ad145e7162d0a988ec65..3ec0b907d0cb5ff25f99d01c5de85c73f5d3943d 100644 (file)
@@ -1,16 +1,18 @@
 error[E0277]: `T` cannot be sent between threads safely
   --> $DIR/builtin-superkinds-typaram-not-send.rs:5:24
    |
-LL | trait Foo : Send { }
-   |             ---- required by this bound in `Foo`
-LL | 
 LL | impl <T: Sync+'static> Foo for T { }
    |                        ^^^ `T` cannot be sent between threads safely
    |
+note: required by a bound in `Foo`
+  --> $DIR/builtin-superkinds-typaram-not-send.rs:3:13
+   |
+LL | trait Foo : Send { }
+   |             ^^^^ required by this bound in `Foo`
 help: consider further restricting this bound
    |
 LL | impl <T: Sync+'static + std::marker::Send> Foo for T { }
-   |                       ^^^^^^^^^^^^^^^^^^^
+   |                       +++++++++++++++++++
 
 error: aborting due to previous error