diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2022-04-23 12:44:52 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2022-04-23 12:44:52 -0700 |
| commit | 1e1f33f584af064a42e782a819fa3bd6ff4bcd23 (patch) | |
| tree | 5a020dacfc22976cc370be72daf51ec2d6d120d1 /src/test/ui/error-codes | |
| parent | acee1f47ef5d75bc9f9043f2be59e4e6ced6892b (diff) | |
| download | rust-1e1f33f584af064a42e782a819fa3bd6ff4bcd23.tar.gz rust-1e1f33f584af064a42e782a819fa3bd6ff4bcd23.zip | |
Use more targetted suggestion span for fully qualified path
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0283.stderr | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/ui/error-codes/E0283.stderr b/src/test/ui/error-codes/E0283.stderr index 7dcfe96b35c..e2bab486064 100644 --- a/src/test/ui/error-codes/E0283.stderr +++ b/src/test/ui/error-codes/E0283.stderr @@ -14,7 +14,6 @@ LL | let bar = foo_impl.into() * 1u32; | | | | | cannot infer type for type parameter `T` declared on the trait `Into` | this method call resolves to `T` - | help: use the fully qualified path for the potential candidate: `<Impl as Into<u32>>::into(foo_impl)` | note: multiple `impl`s satisfying `Impl: Into<_>` found --> $DIR/E0283.rs:17:1 @@ -24,6 +23,10 @@ LL | impl Into<u32> for Impl { = note: and another `impl` found in the `core` crate: - impl<T, U> Into<U> for T where U: From<T>; +help: use the fully qualified path for the potential candidate + | +LL | let bar = <Impl as Into<u32>>::into(foo_impl) * 1u32; + | ++++++++++++++++++++++++++ ~ error: aborting due to 2 previous errors |
