diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-01-26 20:44:43 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-01-26 20:47:19 +0000 |
| commit | 7df4a09fc4e236f854273202e124747d47246ba5 (patch) | |
| tree | ab79258ff23b6dfaba28d25d0787e285373c1115 /tests/ui/specialization/defaultimpl | |
| parent | 757b726f8689c508dbd3979ea6b547a74d6481b9 (diff) | |
| download | rust-7df4a09fc4e236f854273202e124747d47246ba5.tar.gz rust-7df4a09fc4e236f854273202e124747d47246ba5.zip | |
Use single label for method not found due to unmet bound
Diffstat (limited to 'tests/ui/specialization/defaultimpl')
| -rw-r--r-- | tests/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr b/tests/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr index 75c91e4806f..e9b0845ccf7 100644 --- a/tests/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr +++ b/tests/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr @@ -12,10 +12,7 @@ error[E0599]: the method `foo_one` exists for struct `MyStruct`, but its trait b --> $DIR/specialization-trait-not-implemented.rs:22:29 | LL | struct MyStruct; - | --------------- - | | - | method `foo_one` not found for this struct - | doesn't satisfy `MyStruct: Foo` + | --------------- method `foo_one` not found for this struct because it doesn't satisfy `MyStruct: Foo` ... LL | println!("{}", MyStruct.foo_one()); | ^^^^^^^ method cannot be called on `MyStruct` due to unsatisfied trait bounds |
