@@ -2,7 +2,7 @@ error[E0310]: the parameter type `T` may not live long enough
2
2
--> $DIR/regions-close-object-into-object-5.rs:17:5
3
3
|
4
4
LL | fn f<'a, T, U>(v: Box<A<T>+'static>) -> Box<X+'static> {
5
- | - help: consider adding an explicit lifetime bound `T: 'static`...
5
+ | - help: consider adding an explicit lifetime bound...: `T: 'static`
6
6
LL | // oh dear!
7
7
LL | box B(&*v) as Box<X>
8
8
| ^^^^^^^^^^
@@ -17,7 +17,7 @@ error[E0310]: the parameter type `T` may not live long enough
17
17
--> $DIR/regions-close-object-into-object-5.rs:17:5
18
18
|
19
19
LL | fn f<'a, T, U>(v: Box<A<T>+'static>) -> Box<X+'static> {
20
- | - help: consider adding an explicit lifetime bound `T: 'static`...
20
+ | - help: consider adding an explicit lifetime bound...: `T: 'static`
21
21
LL | // oh dear!
22
22
LL | box B(&*v) as Box<X>
23
23
| ^^^^^^^^^^^^^^^^^^^^
@@ -32,7 +32,7 @@ error[E0310]: the parameter type `T` may not live long enough
32
32
--> $DIR/regions-close-object-into-object-5.rs:17:9
33
33
|
34
34
LL | fn f<'a, T, U>(v: Box<A<T>+'static>) -> Box<X+'static> {
35
- | - help: consider adding an explicit lifetime bound `T: 'static`...
35
+ | - help: consider adding an explicit lifetime bound...: `T: 'static`
36
36
LL | // oh dear!
37
37
LL | box B(&*v) as Box<X>
38
38
| ^
@@ -47,7 +47,7 @@ error[E0310]: the parameter type `T` may not live long enough
47
47
--> $DIR/regions-close-object-into-object-5.rs:17:9
48
48
|
49
49
LL | fn f<'a, T, U>(v: Box<A<T>+'static>) -> Box<X+'static> {
50
- | - help: consider adding an explicit lifetime bound `T: 'static`...
50
+ | - help: consider adding an explicit lifetime bound...: `T: 'static`
51
51
LL | // oh dear!
52
52
LL | box B(&*v) as Box<X>
53
53
| ^^^^^^
@@ -62,7 +62,7 @@ error[E0310]: the parameter type `T` may not live long enough
62
62
--> $DIR/regions-close-object-into-object-5.rs:17:11
63
63
|
64
64
LL | fn f<'a, T, U>(v: Box<A<T>+'static>) -> Box<X+'static> {
65
- | - help: consider adding an explicit lifetime bound `T: 'static`...
65
+ | - help: consider adding an explicit lifetime bound...: `T: 'static`
66
66
LL | // oh dear!
67
67
LL | box B(&*v) as Box<X>
68
68
| ^^^
@@ -77,7 +77,7 @@ error[E0310]: the parameter type `T` may not live long enough
77
77
--> $DIR/regions-close-object-into-object-5.rs:17:11
78
78
|
79
79
LL | fn f<'a, T, U>(v: Box<A<T>+'static>) -> Box<X+'static> {
80
- | - help: consider adding an explicit lifetime bound `T: 'static`...
80
+ | - help: consider adding an explicit lifetime bound...: `T: 'static`
81
81
LL | // oh dear!
82
82
LL | box B(&*v) as Box<X>
83
83
| ^^^
@@ -92,7 +92,7 @@ error[E0310]: the parameter type `T` may not live long enough
92
92
--> $DIR/regions-close-object-into-object-5.rs:17:11
93
93
|
94
94
LL | fn f<'a, T, U>(v: Box<A<T>+'static>) -> Box<X+'static> {
95
- | - help: consider adding an explicit lifetime bound `T: 'static`...
95
+ | - help: consider adding an explicit lifetime bound...: `T: 'static`
96
96
LL | // oh dear!
97
97
LL | box B(&*v) as Box<X>
98
98
| ^^^
0 commit comments