diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2020-02-17 23:22:19 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2020-02-28 11:37:58 -0800 |
| commit | f037d5ca1bf42108520a1fd3b07c5cec46bc94da (patch) | |
| tree | fc41848ba2c8e5ff0ad08f77e41bc226cbfc1362 /src/test/ui/specialization/defaultimpl | |
| parent | eaa02f599f651246d5d1b99e7a4c6fa8d04bc9dc (diff) | |
| download | rust-f037d5ca1bf42108520a1fd3b07c5cec46bc94da.tar.gz rust-f037d5ca1bf42108520a1fd3b07c5cec46bc94da.zip | |
Add more context to E0599 errors
Point at the intermediary unfullfilled trait bounds.
Diffstat (limited to 'src/test/ui/specialization/defaultimpl')
| -rw-r--r-- | src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr b/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr index 19809778a5e..2d0caf1dd87 100644 --- a/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr +++ b/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr @@ -2,13 +2,16 @@ error[E0599]: no method named `foo_one` found for struct `MyStruct` in the curre --> $DIR/specialization-trait-not-implemented.rs:22:29 | LL | struct MyStruct; - | ---------------- method `foo_one` not found for this + | ---------------- + | | + | method `foo_one` not found for this + | this type doesn't satisfy the bound `Foo` ... LL | println!("{}", MyStruct.foo_one()); | ^^^^^^^ method not found in `MyStruct` | = note: the method `foo_one` exists but the following trait bounds were not satisfied: - `MyStruct : Foo` + `MyStruct: Foo` = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `foo_one`, perhaps you need to implement it: candidate #1: `Foo` |
