about summary refs log tree commit diff
path: root/src/test/ui/impl-trait
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2021-04-23 18:24:02 -0700
committerEsteban Küber <esteban@kuber.com.ar>2021-04-23 18:57:52 -0700
commitfb1fb7d2ef45760bfe133381286dc750fe51e49e (patch)
treeda4a8c2be1206171a8fbf3f1603d1ad174530c3a /src/test/ui/impl-trait
parent64ee9cc28ceda652ac06b7d6bf68d1b7f408cf23 (diff)
downloadrust-fb1fb7d2ef45760bfe133381286dc750fe51e49e.tar.gz
rust-fb1fb7d2ef45760bfe133381286dc750fe51e49e.zip
Tweak suggestion output
Diffstat (limited to 'src/test/ui/impl-trait')
-rw-r--r--src/test/ui/impl-trait/no-method-suggested-traits.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/impl-trait/no-method-suggested-traits.stderr b/src/test/ui/impl-trait/no-method-suggested-traits.stderr
index 64ddcb81c0a..b993115502f 100644
--- a/src/test/ui/impl-trait/no-method-suggested-traits.stderr
+++ b/src/test/ui/impl-trait/no-method-suggested-traits.stderr
@@ -37,6 +37,9 @@ LL | use no_method_suggested_traits::Reexported;
 error[E0599]: no method named `method` found for type `char` in the current scope
   --> $DIR/no-method-suggested-traits.rs:30:9
    |
+LL |         fn method(&self) {}
+   |            ------ the method is available for `char` here
+...
 LL |     'a'.method();
    |         ^^^^^^ method not found in `char`
    |
@@ -63,6 +66,11 @@ error[E0599]: no method named `method` found for type `i32` in the current scope
    |
 LL |     1i32.method();
    |          ^^^^^^ method not found in `i32`
+   | 
+  ::: $DIR/auxiliary/no_method_suggested_traits.rs:8:12
+   |
+LL |         fn method(&self) {}
+   |            ------ the method is available for `i32` here
    |
    = help: items from traits can only be used if the trait is in scope
 help: the following trait is implemented but not in scope; perhaps add a `use` for it: