Point at unmet explicit lifetime obligation bound

This commit is contained in:
Esteban Küber 2021-07-30 08:12:10 -07:00
parent 7069a8c2b7
commit e5d42af6ba
24 changed files with 238 additions and 55 deletions

View file

@ -4,7 +4,11 @@ error[E0477]: the type `&'a u32` does not fulfill the required lifetime
LL | let x = foo::<&'a u32>();
| ^^^^^^^^^^^^^^
|
= note: type must satisfy the static lifetime
note: type must satisfy the static lifetime as required by this binding
--> $DIR/issue-54943.rs:1:11
|
LL | fn foo<T: 'static>() { }
| ^^^^^^^
error: aborting due to previous error