]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | error: unsatisfied lifetime constraints |
2 | --> $DIR/regions-infer-invariance-due-to-mutability-3.rs:21:5 | |
3 | | | |
4 | LL | fn to_longer_lifetime<'r>(b_isize: invariant<'r>) -> invariant<'static> { | |
5 | | -- lifetime `'r` defined here | |
6 | LL | b_isize //~ ERROR mismatched types | |
7 | | ^^^^^^^ returning this value requires that `'r` must outlive `'static` | |
8 | ||
9 | error: aborting due to previous error | |
10 |