]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-lifetime/object-lifetime-default-elision.nll.stderr
Auto merge of #53933 - GuillaumeGomez:codeblock-error-display, r=QuietMisdreavus
[rust.git] / src / test / ui / object-lifetime / object-lifetime-default-elision.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/object-lifetime-default-elision.rs:81:5
3    |
4 LL | fn load3<'a,'b>(ss: &'a SomeTrait) -> &'b SomeTrait {
5    |          -- -- lifetime `'b` defined here
6    |          |
7    |          lifetime `'a` defined here
8 ...
9 LL |     ss
10    |     ^^ returning this value requires that `'a` must outlive `'b`
11
12 error: aborting due to previous error
13