@@ -26,13 +26,15 @@ fn send<T: Send>(_: T) {}
26
26
fn main ( ) {
27
27
send ( before ( ) ) ;
28
28
//~^ ERROR the trait bound `std::rc::Rc<std::cell::Cell<i32>>: std::marker::Send` is not satisfied
29
+ //~| NOTE trait `std::rc::Rc<std::cell::Cell<i32>>: std::marker::Send` not satisfied
29
30
//~| NOTE `std::rc::Rc<std::cell::Cell<i32>>` cannot be sent between threads safely
30
31
//~| NOTE required because it appears within the type `[closure
31
32
//~| NOTE required because it appears within the type `impl std::ops::Fn<(i32,)>`
32
33
//~| NOTE required by `send`
33
34
34
35
send ( after ( ) ) ;
35
36
//~^ ERROR the trait bound `std::rc::Rc<std::cell::Cell<i32>>: std::marker::Send` is not satisfied
37
+ //~| NOTE trait `std::rc::Rc<std::cell::Cell<i32>>: std::marker::Send` not satisfied
36
38
//~| NOTE `std::rc::Rc<std::cell::Cell<i32>>` cannot be sent between threads safely
37
39
//~| NOTE required because it appears within the type `[closure
38
40
//~| NOTE required because it appears within the type `impl std::ops::Fn<(i32,)>`
@@ -52,6 +54,7 @@ fn after() -> impl Fn(i32) {
52
54
fn cycle1 ( ) -> impl Clone {
53
55
send ( cycle2 ( ) . clone ( ) ) ;
54
56
//~^ ERROR the trait bound `std::rc::Rc<std::string::String>: std::marker::Send` is not satisfied
57
+ //~| NOTE trait `std::rc::Rc<std::string::String>: std::marker::Send` not satisfied
55
58
//~| NOTE `std::rc::Rc<std::string::String>` cannot be sent between threads safely
56
59
//~| NOTE required because it appears within the type `impl std::clone::Clone`
57
60
//~| NOTE required by `send`
@@ -62,6 +65,7 @@ fn cycle1() -> impl Clone {
62
65
fn cycle2 ( ) -> impl Clone {
63
66
send ( cycle1 ( ) . clone ( ) ) ;
64
67
//~^ ERROR the trait bound `std::rc::Rc<std::cell::Cell<i32>>: std::marker::Send` is not satisfied
68
+ //~| NOTE trait `std::rc::Rc<std::cell::Cell<i32>>: std::marker::Send` not satisfied
65
69
//~| NOTE `std::rc::Rc<std::cell::Cell<i32>>` cannot be sent between threads safely
66
70
//~| NOTE required because it appears within the type `impl std::clone::Clone`
67
71
//~| NOTE required by `send`
0 commit comments