From 8993b99ae28a1f8e3c11231a17e645feee66ea2f Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Tue, 18 Feb 2020 01:35:18 -0800 Subject: On single local candidate, use span label --- .../defaultimpl/specialization-trait-not-implemented.stderr | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/test/ui/specialization/defaultimpl') 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 2d0caf1dd87..ccbb2aae05d 100644 --- a/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr +++ b/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr @@ -1,6 +1,9 @@ error[E0599]: no method named `foo_one` found for struct `MyStruct` in the current scope --> $DIR/specialization-trait-not-implemented.rs:22:29 | +LL | trait Foo { + | --------- this trait defines an item `foo_one` +... LL | struct MyStruct; | ---------------- | | @@ -13,8 +16,6 @@ LL | println!("{}", MyStruct.foo_one()); = note: the method `foo_one` exists but the following trait bounds were not satisfied: `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` error: aborting due to previous error -- cgit 1.4.1-3-g733a5