rust/tests/ui/regions/issue-28848.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
439 B
Plaintext
Raw Normal View History

error: lifetime may not live long enough
2022-04-01 17:13:25 +00:00
--> $DIR/issue-28848.rs:10:5
|
LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
| -- -- lifetime `'b` defined here
| |
| lifetime `'a` defined here
LL | Foo::<'a, 'b>::xmute(u)
| ^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
2019-10-27 14:39:14 +00:00
|
= help: consider adding the following bound: `'b: 'a`
error: aborting due to 1 previous error