]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/user-annotations/inherent-associated-constants.stderr
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / nll / user-annotations / inherent-associated-constants.stderr
1 error: lifetime may not live long enough
2   --> $DIR/inherent-associated-constants.rs:8:5
3    |
4 LL | fn non_wf_associated_const<'a>(x: i32) {
5    |                            -- lifetime `'a` defined here
6 LL |     A::<'a>::IC;
7    |     ^^^^^^^^^^^ requires that `'a` must outlive `'static`
8
9 error: aborting due to previous error
10