]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-lifetime/object-lifetime-default-elision.nll.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / object-lifetime / object-lifetime-default-elision.nll.stderr
1 error: lifetime may not live long enough
2   --> $DIR/object-lifetime-default-elision.rs:71:5
3    |
4 LL | fn load3<'a,'b>(ss: &'a dyn SomeTrait) -> &'b dyn 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    = help: consider adding the following bound: `'a: 'b`
13
14 error: aborting due to previous error
15