]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28848.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-28848.stderr
1 error[E0478]: lifetime bound not satisfied
2   --> $DIR/issue-28848.rs:22:5
3    |
4 LL |     Foo::<'a, 'b>::xmute(u) //~ ERROR lifetime bound not satisfied
5    |     ^^^^^^^^^^^^^^^^^^^^
6    |
7 note: lifetime parameter instantiated with the lifetime 'b as defined on the function body at 21:16
8   --> $DIR/issue-28848.rs:21:16
9    |
10 LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
11    |                ^^
12 note: but lifetime parameter must outlive the lifetime 'a as defined on the function body at 21:12
13   --> $DIR/issue-28848.rs:21:12
14    |
15 LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
16    |            ^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0478`.