Point at unmet explicit lifetime obligation bound
This commit is contained in:
parent
7069a8c2b7
commit
e5d42af6ba
24 changed files with 238 additions and 55 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue