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