diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2020-02-18 01:35:18 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2020-02-28 11:37:58 -0800 |
| commit | 8993b99ae28a1f8e3c11231a17e645feee66ea2f (patch) | |
| tree | b29695fd034c3bfff70a8984d0a4c681a1513b0c /src/test/ui/specialization/defaultimpl | |
| parent | 5e8707f39d781df9cc40e81cd1ccdffcfbe5af1f (diff) | |
| download | rust-8993b99ae28a1f8e3c11231a17e645feee66ea2f.tar.gz rust-8993b99ae28a1f8e3c11231a17e645feee66ea2f.zip | |
On single local candidate, use span label
Diffstat (limited to 'src/test/ui/specialization/defaultimpl')
| -rw-r--r-- | src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr | 5 |
1 files changed, 3 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 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 |
