11error[E0277]: `Rc<Foo>` cannot be shared between threads safely
2- --> $DIR/deep-level-Send -bound-check-issue-40827.rs:14:7
2+ --> $DIR/deep-level-send -bound-check-issue-40827.rs:14:7
33 |
44LL | f(Foo(Arc::new(Bar::B(None))));
55 | - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Rc<Foo>` cannot be shared between threads safely
@@ -8,24 +8,24 @@ LL | f(Foo(Arc::new(Bar::B(None))));
88 |
99 = help: within `Bar`, the trait `Sync` is not implemented for `Rc<Foo>`
1010note: required because it appears within the type `Bar`
11- --> $DIR/deep-level-Send -bound-check-issue-40827.rs:6:6
11+ --> $DIR/deep-level-send -bound-check-issue-40827.rs:6:6
1212 |
1313LL | enum Bar {
1414 | ^^^
1515 = note: required for `Arc<Bar>` to implement `Send`
1616note: required because it appears within the type `Foo`
17- --> $DIR/deep-level-Send -bound-check-issue-40827.rs:4:8
17+ --> $DIR/deep-level-send -bound-check-issue-40827.rs:4:8
1818 |
1919LL | struct Foo(Arc<Bar>);
2020 | ^^^
2121note: required by a bound in `f`
22- --> $DIR/deep-level-Send -bound-check-issue-40827.rs:11:9
22+ --> $DIR/deep-level-send -bound-check-issue-40827.rs:11:9
2323 |
2424LL | fn f<T: Send>(_: T) {}
2525 | ^^^^ required by this bound in `f`
2626
2727error[E0277]: `Rc<Foo>` cannot be sent between threads safely
28- --> $DIR/deep-level-Send -bound-check-issue-40827.rs:14:7
28+ --> $DIR/deep-level-send -bound-check-issue-40827.rs:14:7
2929 |
3030LL | f(Foo(Arc::new(Bar::B(None))));
3131 | - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Rc<Foo>` cannot be sent between threads safely
@@ -34,18 +34,18 @@ LL | f(Foo(Arc::new(Bar::B(None))));
3434 |
3535 = help: within `Bar`, the trait `Send` is not implemented for `Rc<Foo>`
3636note: required because it appears within the type `Bar`
37- --> $DIR/deep-level-Send -bound-check-issue-40827.rs:6:6
37+ --> $DIR/deep-level-send -bound-check-issue-40827.rs:6:6
3838 |
3939LL | enum Bar {
4040 | ^^^
4141 = note: required for `Arc<Bar>` to implement `Send`
4242note: required because it appears within the type `Foo`
43- --> $DIR/deep-level-Send -bound-check-issue-40827.rs:4:8
43+ --> $DIR/deep-level-send -bound-check-issue-40827.rs:4:8
4444 |
4545LL | struct Foo(Arc<Bar>);
4646 | ^^^
4747note: required by a bound in `f`
48- --> $DIR/deep-level-Send -bound-check-issue-40827.rs:11:9
48+ --> $DIR/deep-level-send -bound-check-issue-40827.rs:11:9
4949 |
5050LL | fn f<T: Send>(_: T) {}
5151 | ^^^^ required by this bound in `f`
0 commit comments