Skip to content

Commit

Permalink
Add where to borrowck_could_not_prove
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Feb 10, 2023
1 parent 9b8dbd5 commit cb61127
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_error_messages/locales/en-US/borrowck.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ borrowck_higher_ranked_lifetime_error =
higher-ranked lifetime error
borrowck_could_not_prove =
could not prove `{$predicate}`
could not prove `where {$predicate}`
borrowck_could_not_normalize =
could not normalize `{$value}`
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/higher-rank-trait-bounds/issue-59311.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ error: higher-ranked lifetime error
LL | v.t(|| {});
| ^^^^^^^^^^
|
= note: could not prove `[closure@$DIR/issue-59311.rs:17:9: 17:11] well-formed`
= note: could not prove `where [closure@$DIR/issue-59311.rs:17:9: 17:11] well-formed`

error: higher-ranked lifetime error
--> $DIR/issue-59311.rs:17:9
|
LL | v.t(|| {});
| ^^^^^
|
= note: could not prove `for<'a> &'a V: 'static`
= note: could not prove `where for<'a> &'a V: 'static`

error: aborting due to 2 previous errors

2 changes: 1 addition & 1 deletion tests/ui/lifetimes/re-empty-in-error.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: higher-ranked lifetime error
LL | foo(&10);
| ^^^^^^^^
|
= note: could not prove `for<'b> &'b (): 'a`
= note: could not prove `where for<'b> &'b (): 'a`

error: aborting due to previous error

0 comments on commit cb61127

Please sign in to comment.