]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/no_send-rc.stderr
Permit `#[deprecated]` in stdlib
[rust.git] / src / test / ui / no_send-rc.stderr
index 713dd7536630f06fea5ea7e5561c732be7ea68dc..ce25da559da3faef9fd6e4d90f6c95722aa8c7c0 100644 (file)
@@ -1,13 +1,17 @@
 error[E0277]: `Rc<{integer}>` cannot be sent between threads safely
   --> $DIR/no_send-rc.rs:7:9
    |
-LL | fn bar<T: Send>(_: T) {}
-   |           ---- required by this bound in `bar`
-...
 LL |     bar(x);
-   |         ^ `Rc<{integer}>` cannot be sent between threads safely
+   |     --- ^ `Rc<{integer}>` cannot be sent between threads safely
+   |     |
+   |     required by a bound introduced by this call
    |
    = help: the trait `Send` is not implemented for `Rc<{integer}>`
+note: required by a bound in `bar`
+  --> $DIR/no_send-rc.rs:3:11
+   |
+LL | fn bar<T: Send>(_: T) {}
+   |           ^^^^ required by this bound in `bar`
 
 error: aborting due to previous error