Skip to content

Commit cb61127

Browse files
Add where to borrowck_could_not_prove
1 parent 9b8dbd5 commit cb61127

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/rustc_error_messages/locales/en-US/borrowck.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ borrowck_higher_ranked_lifetime_error =
66
higher-ranked lifetime error
77
88
borrowck_could_not_prove =
9-
could not prove `{$predicate}`
9+
could not prove `where {$predicate}`
1010
1111
borrowck_could_not_normalize =
1212
could not normalize `{$value}`

tests/ui/higher-rank-trait-bounds/issue-59311.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ error: higher-ranked lifetime error
44
LL | v.t(|| {});
55
| ^^^^^^^^^^
66
|
7-
= note: could not prove `[closure@$DIR/issue-59311.rs:17:9: 17:11] well-formed`
7+
= note: could not prove `where [closure@$DIR/issue-59311.rs:17:9: 17:11] well-formed`
88

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

1717
error: aborting due to 2 previous errors
1818

tests/ui/lifetimes/re-empty-in-error.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: higher-ranked lifetime error
44
LL | foo(&10);
55
| ^^^^^^^^
66
|
7-
= note: could not prove `for<'b> &'b (): 'a`
7+
= note: could not prove `where for<'b> &'b (): 'a`
88

99
error: aborting due to previous error
1010

0 commit comments

Comments
 (0)