X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fissues%2Fissue-40827.stderr;h=11c23e5b659b7af06385f33dd0f0bd4ab1c9cf00;hb=1a1f525bb0d9897673b2445122ffd6f7aa265c9e;hp=3b2d232e61f7e5c8c559c8835ca8e949df59d52a;hpb=2627db6a3cc4115cc3ff7a1597eb44347acb0c54;p=rust.git diff --git a/src/test/ui/issues/issue-40827.stderr b/src/test/ui/issues/issue-40827.stderr index 3b2d232e61f..11c23e5b659 100644 --- a/src/test/ui/issues/issue-40827.stderr +++ b/src/test/ui/issues/issue-40827.stderr @@ -1,8 +1,10 @@ error[E0277]: `Rc` cannot be shared between threads safely - --> $DIR/issue-40827.rs:14:5 + --> $DIR/issue-40827.rs:14:7 | LL | f(Foo(Arc::new(Bar::B(None)))); - | ^ `Rc` cannot be shared between threads safely + | - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Rc` cannot be shared between threads safely + | | + | required by a bound introduced by this call | = help: within `Bar`, the trait `Sync` is not implemented for `Rc` note: required because it appears within the type `Bar` @@ -23,10 +25,12 @@ LL | fn f(_: T) {} | ^^^^ required by this bound in `f` error[E0277]: `Rc` cannot be sent between threads safely - --> $DIR/issue-40827.rs:14:5 + --> $DIR/issue-40827.rs:14:7 | LL | f(Foo(Arc::new(Bar::B(None)))); - | ^ `Rc` cannot be sent between threads safely + | - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Rc` cannot be sent between threads safely + | | + | required by a bound introduced by this call | = help: within `Bar`, the trait `Send` is not implemented for `Rc` note: required because it appears within the type `Bar`