about summary refs log tree commit diff
path: root/src/test/ui/specialization/defaultimpl
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-02-17 23:22:19 -0800
committerEsteban Küber <esteban@kuber.com.ar>2020-02-28 11:37:58 -0800
commitf037d5ca1bf42108520a1fd3b07c5cec46bc94da (patch)
treefc41848ba2c8e5ff0ad08f77e41bc226cbfc1362 /src/test/ui/specialization/defaultimpl
parenteaa02f599f651246d5d1b99e7a4c6fa8d04bc9dc (diff)
downloadrust-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.stderr7
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`