65fe251634
We equate the type in the annotation with the inferred type first so that we have a fully inferred type to perform the well-formedness check on.
12 lines
292 B
Plaintext
12 lines
292 B
Plaintext
error: lifetime may not live long enough
|
|
--> $DIR/issue-54943.rs:9:13
|
|
|
|
|
LL | fn boo<'a>() {
|
|
| -- lifetime `'a` defined here
|
|
...
|
|
LL | let x = foo::<&'a u32>();
|
|
| ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
error: aborting due to previous error
|
|
|