diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2020-04-13 19:46:34 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2020-05-02 18:24:07 -0700 |
| commit | 31b356619657928113902b975453a5e19371bb25 (patch) | |
| tree | 3091edeed3d01082c1e4e491a52ee36a5cffb363 /src/test/ui/associated-const | |
| parent | 3a795fba038bf64452abb8c2240fd1221185e274 (diff) | |
| download | rust-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.stderr | 2 |
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 |
