blob: 91e7c6b8ecf1f2ca469e3f1c80d6d94cf63f9783 (
plain)
1
2
3
4
5
6
7
8
9
10
|
error: lifetime may not live long enough
--> $DIR/ascribed-type-wf.rs:13:5
|
LL | fn extend<'a>() {
| -- lifetime `'a` defined here
LL | None::<<&'a () as Trait>::Ty>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
error: aborting due to previous error
|