diff --git a/tests/ui/no-display.stderr b/tests/ui/no-display.stderr index b1a0c49..8af2452 100644 --- a/tests/ui/no-display.stderr +++ b/tests/ui/no-display.stderr @@ -1,12 +1,12 @@ -error[E0599]: no method named `as_display` found for reference `&NoDisplay` in the current scope +error[E0599]: the method `as_display` exists for reference `&NoDisplay`, but its trait bounds were not satisfied --> $DIR/no-display.rs:7:9 | 4 | struct NoDisplay; | ----------------- doesn't satisfy `NoDisplay: std::fmt::Display` ... 7 | #[error("thread: {thread}")] - | ^^^^^^^^^^^^^^^^^^ method not found in `&NoDisplay` + | ^^^^^^^^^^^^^^^^^^ method cannot be called on `&NoDisplay` due to unsatisfied trait bounds | - = note: the method `as_display` exists but the following trait bounds were not satisfied: + = note: the following trait bounds were not satisfied: `NoDisplay: std::fmt::Display` which is required by `&NoDisplay: DisplayAsDisplay` diff --git a/tests/ui/source-enum-not-error.stderr b/tests/ui/source-enum-not-error.stderr index 3dee730..2bf7aea 100644 --- a/tests/ui/source-enum-not-error.stderr +++ b/tests/ui/source-enum-not-error.stderr @@ -1,4 +1,4 @@ -error[E0599]: no method named `as_dyn_error` found for reference `&NotError` in the current scope +error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but its trait bounds were not satisfied --> $DIR/source-enum-not-error.rs:10:9 | 4 | pub struct NotError; @@ -8,9 +8,9 @@ error[E0599]: no method named `as_dyn_error` found for reference `&NotError` in | doesn't satisfy `NotError: std::error::Error` ... 10 | source: NotError, - | ^^^^^^ method not found in `&NotError` + | ^^^^^^ method cannot be called on `&NotError` due to unsatisfied trait bounds | - = note: the method `as_dyn_error` exists but the following trait bounds were not satisfied: + = note: the following trait bounds were not satisfied: `NotError: std::error::Error` which is required by `NotError: AsDynError` `&NotError: std::error::Error` diff --git a/tests/ui/source-struct-not-error.stderr b/tests/ui/source-struct-not-error.stderr index 0aa03dd..7a2c0fe 100644 --- a/tests/ui/source-struct-not-error.stderr +++ b/tests/ui/source-struct-not-error.stderr @@ -1,4 +1,4 @@ -error[E0599]: no method named `as_dyn_error` found for struct `NotError` in the current scope +error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its trait bounds were not satisfied --> $DIR/source-struct-not-error.rs:9:5 | 4 | struct NotError; @@ -9,8 +9,8 @@ error[E0599]: no method named `as_dyn_error` found for struct `NotError` in the | doesn't satisfy `NotError: std::error::Error` ... 9 | source: NotError, - | ^^^^^^ method not found in `NotError` + | ^^^^^^ method cannot be called on `NotError` due to unsatisfied trait bounds | - = note: the method `as_dyn_error` exists but the following trait bounds were not satisfied: + = note: the following trait bounds were not satisfied: `NotError: std::error::Error` which is required by `NotError: AsDynError`