blob: 738a1c0c6f616bff65c3944eb117f41c234ee3c7 [file] [log] [blame]
error[E0478]: lifetime bound not satisfied
--> $DIR/issue-28848.rs:20:5
|
LL | Foo::<'a, 'b>::xmute(u) //~ ERROR lifetime bound not satisfied
| ^^^^^^^^^^^^^^^^^^^^
|
note: lifetime parameter instantiated with the lifetime 'b as defined on the function body at 19:16
--> $DIR/issue-28848.rs:19:16
|
LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
| ^^
note: but lifetime parameter must outlive the lifetime 'a as defined on the function body at 19:12
--> $DIR/issue-28848.rs:19:12
|
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`.