about summary refs log tree commit diff
path: root/src/test/ui/associated-const
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-04-13 19:46:34 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-05-02 18:24:07 -0700
commit31b356619657928113902b975453a5e19371bb25 (patch)
tree3091edeed3d01082c1e4e491a52ee36a5cffb363 /src/test/ui/associated-const
parent3a795fba038bf64452abb8c2240fd1221185e274 (diff)
downloadrust-31b356619657928113902b975453a5e19371bb25.tar.gz
rust-31b356619657928113902b975453a5e19371bb25.zip
When a projection is expected, suggest constraining or calling method
Diffstat (limited to 'src/test/ui/associated-const')
-rw-r--r--src/test/ui/associated-const/associated-const-generic-obligations.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/associated-const/associated-const-generic-obligations.stderr b/src/test/ui/associated-const/associated-const-generic-obligations.stderr
index d6cdcd4747f..6e3ec4ed155 100644
--- a/src/test/ui/associated-const/associated-const-generic-obligations.stderr
+++ b/src/test/ui/associated-const/associated-const-generic-obligations.stderr
@@ -9,7 +9,7 @@ LL |     const FROM: &'static str = "foo";
    |
    = note: expected associated type `<T as Foo>::Out`
                     found reference `&'static str`
-   = note: consider constraining the associated type `<T as Foo>::Out` to `&'static str` or calling a method that returns `<T as Foo>::Out`
+   = help: consider constraining the associated type `<T as Foo>::Out` to `&'static str`
    = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
 
 error: aborting due to previous error