]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-28848.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / issues / issue-28848.stderr
CommitLineData
b7449926 1error[E0478]: lifetime bound not satisfied
0bf4aa26 2 --> $DIR/issue-28848.rs:20:5
b7449926
XL
3 |
4LL | Foo::<'a, 'b>::xmute(u) //~ ERROR lifetime bound not satisfied
5 | ^^^^^^^^^^^^^^^^^^^^
6 |
0bf4aa26
XL
7note: lifetime parameter instantiated with the lifetime 'b as defined on the function body at 19:16
8 --> $DIR/issue-28848.rs:19:16
b7449926
XL
9 |
10LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
11 | ^^
0bf4aa26
XL
12note: but lifetime parameter must outlive the lifetime 'a as defined on the function body at 19:12
13 --> $DIR/issue-28848.rs:19:12
b7449926
XL
14 |
15LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
16 | ^^
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0478`.