rust/src/test/ui/issues/issue-28848.stderr

21 lines
660 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0478]: lifetime bound not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/issue-28848.rs:10:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | Foo::<'a, 'b>::xmute(u)
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^^^^^^
|
2018-12-25 09:56:47 -06:00
note: lifetime parameter instantiated with the lifetime 'b as defined on the function body at 9:16
--> $DIR/issue-28848.rs:9:16
2018-08-08 07:28:26 -05:00
|
LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
| ^^
2018-12-25 09:56:47 -06:00
note: but lifetime parameter must outlive the lifetime 'a as defined on the function body at 9:12
--> $DIR/issue-28848.rs:9:12
2018-08-08 07:28:26 -05:00
|
LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
| ^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0478`.