about summary refs log tree commit diff
path: root/src/test/ui/missing/missing-items
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-10-23 22:45:15 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-11-06 10:00:59 -0800
commitf545a50ee483f1d1a513ed2c73622646528236ae (patch)
tree8b458cb59e87569f54d596d5deb41f75f8f24f7b /src/test/ui/missing/missing-items
parent3f0e16473de5ec010f44290a8c3ea1d90e0ad7a2 (diff)
downloadrust-f545a50ee483f1d1a513ed2c73622646528236ae.tar.gz
rust-f545a50ee483f1d1a513ed2c73622646528236ae.zip
Suggest missing item from `trait` in `impl`
Diffstat (limited to 'src/test/ui/missing/missing-items')
-rw-r--r--src/test/ui/missing/missing-items/m2.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/missing/missing-items/m2.stderr b/src/test/ui/missing/missing-items/m2.stderr
index d2dac4ca645..f8243528d72 100644
--- a/src/test/ui/missing/missing-items/m2.stderr
+++ b/src/test/ui/missing/missing-items/m2.stderr
@@ -4,9 +4,9 @@ error[E0046]: not all trait items implemented, missing: `CONSTANT`, `Type`, `met
 LL | impl m1::X for X {
    | ^^^^^^^^^^^^^^^^ missing `CONSTANT`, `Type`, `method` in implementation
    |
-   = note: `CONSTANT` from trait: `const CONSTANT: u32;`
-   = note: `Type` from trait: `type Type;`
-   = note: `method` from trait: `fn(&Self, std::string::String) -> <Self as m1::X>::Type`
+   = help: implement the missing item: `const CONSTANT: u32 = 42;`
+   = help: implement the missing item: `type Type = Type;`
+   = help: implement the missing item: `fn method(&self, _: std::string::String) -> <Self as m1::X>::Type { unimplemented!() }`
 
 error: aborting due to previous error