]> git.proxmox.com Git - rustc.git/blame - src/test/ui/object-lifetime/object-lifetime-default-elision.nll.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / object-lifetime / object-lifetime-default-elision.nll.stderr
CommitLineData
48663c56
XL
1error: lifetime may not live long enough
2 --> $DIR/object-lifetime-default-elision.rs:71:5
3 |
dc9dc135 4LL | fn load3<'a,'b>(ss: &'a dyn SomeTrait) -> &'b dyn SomeTrait {
48663c56
XL
5 | -- -- lifetime `'b` defined here
6 | |
7 | lifetime `'a` defined here
8...
9LL | ss
5099ac24 10 | ^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a`
60c5eb7d
XL
11 |
12 = help: consider adding the following bound: `'a: 'b`
48663c56
XL
13
14error: aborting due to previous error
15