]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/user-annotations/ascribed-type-wf.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / nll / user-annotations / ascribed-type-wf.stderr
1 error: lifetime may not live long enough
2   --> $DIR/ascribed-type-wf.rs:13:5
3    |
4 LL | fn extend<'a>() {
5    |           -- lifetime `'a` defined here
6 LL |     None::<<&'a () as Trait>::Ty>;
7    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
8
9 error: aborting due to previous error
10