]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-infer-invariance-due-to-decl.nll.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / regions / regions-infer-invariance-due-to-decl.nll.stderr
CommitLineData
48663c56
XL
1error: lifetime may not live long enough
2 --> $DIR/regions-infer-invariance-due-to-decl.rs:12:5
3 |
4LL | fn to_longer_lifetime<'r>(b_isize: Invariant<'r>) -> Invariant<'static> {
5 | -- lifetime `'r` defined here
6LL | b_isize
7 | ^^^^^^^ returning this value requires that `'r` must outlive `'static`
8
9error: aborting due to previous error
10