Skip to content

Commit 2978c7e

Browse files
committed
Reword sentence
1 parent 5e52df5 commit 2978c7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_infer/src/infer/error_reporting/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
481481
// couldn't be met.
482482
err.span_note(
483483
relevant_bindings,
484-
format!("unmet `{sub}` obligations introduced here"),
484+
format!("`{sub}` requirement introduced here"),
485485
);
486486
}
487487
}

tests/ui/lifetimes/point-at-lifetime-obligation-from-trait-in-trait-object.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ note: lifetime parameter instantiated with the lifetime `'a` as defined here
1010
LL | struct Something<'a> {
1111
| ^^
1212
= note: but lifetime parameter must outlive the static lifetime
13-
note: unmet `'static` obligations introduced here
13+
note: `'static` requirement introduced here
1414
--> $SRC_DIR/core/src/any.rs:LL:COL
1515

1616
error: aborting due to 1 previous error

0 commit comments

Comments
 (0)