@@ -29,15 +29,15 @@ fn static_lifime_ok<'a,T,U:Send>(_: &'a isize) {
29
29
// otherwise lifetime pointers are not ok
30
30
31
31
fn param_not_ok < ' a > ( x : & ' a isize ) {
32
- assert_send :: < & ' a isize > ( ) ; //~ ERROR declared lifetime bound not satisfied
32
+ assert_send :: < & ' a isize > ( ) ; //~ ERROR does not fulfill the required lifetime
33
33
}
34
34
35
35
fn param_not_ok1 < ' a > ( _: & ' a isize ) {
36
- assert_send :: < & ' a str > ( ) ; //~ ERROR declared lifetime bound not satisfied
36
+ assert_send :: < & ' a str > ( ) ; //~ ERROR does not fulfill the required lifetime
37
37
}
38
38
39
39
fn param_not_ok2 < ' a > ( _: & ' a isize ) {
40
- assert_send :: < & ' a [ isize ] > ( ) ; //~ ERROR declared lifetime bound not satisfied
40
+ assert_send :: < & ' a [ isize ] > ( ) ; //~ ERROR does not fulfill the required lifetime
41
41
}
42
42
43
43
// boxes are ok
@@ -51,7 +51,7 @@ fn box_ok() {
51
51
// but not if they own a bad thing
52
52
53
53
fn box_with_region_not_ok < ' a > ( ) {
54
- assert_send :: < Box < & ' a isize > > ( ) ; //~ ERROR declared lifetime bound not satisfied
54
+ assert_send :: < Box < & ' a isize > > ( ) ; //~ ERROR does not fulfill the required lifetime
55
55
}
56
56
57
57
// unsafe pointers are ok unless they point at unsendable things
@@ -62,11 +62,11 @@ fn unsafe_ok1<'a>(_: &'a isize) {
62
62
}
63
63
64
64
fn unsafe_ok2 < ' a > ( _: & ' a isize ) {
65
- assert_send :: < * const & ' a isize > ( ) ; //~ ERROR declared lifetime bound not satisfied
65
+ assert_send :: < * const & ' a isize > ( ) ; //~ ERROR does not fulfill the required lifetime
66
66
}
67
67
68
68
fn unsafe_ok3 < ' a > ( _: & ' a isize ) {
69
- assert_send :: < * mut & ' a isize > ( ) ; //~ ERROR declared lifetime bound not satisfied
69
+ assert_send :: < * mut & ' a isize > ( ) ; //~ ERROR does not fulfill the required lifetime
70
70
}
71
71
72
72
fn main ( ) {
0 commit comments