about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-08-17 00:21:40 +0000
committerMichael Goulet <michael@errs.io>2022-08-21 02:35:11 +0000
commitc8746766cb2e375c8b9eeb1bab656aca4cc2a9d1 (patch)
tree5d445492be1b740eaee20d4dc667cbe8221ba8b3 /src/test/ui/error-codes
parent70b29f7c2d6d4b86d5b1492f3aa63969a62b25bf (diff)
downloadrust-c8746766cb2e375c8b9eeb1bab656aca4cc2a9d1.tar.gz
rust-c8746766cb2e375c8b9eeb1bab656aca4cc2a9d1.zip
Rework ambiguity errors
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0283.stderr21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/test/ui/error-codes/E0283.stderr b/src/test/ui/error-codes/E0283.stderr
index 162d4922d00..90a28874ead 100644
--- a/src/test/ui/error-codes/E0283.stderr
+++ b/src/test/ui/error-codes/E0283.stderr
@@ -12,24 +12,11 @@ help: use a fully-qualified path to a specific available implementation (2 found
 LL |     let cont: u32 = <::Impl as Generator>::create();
    |                     ++++++++++          +
 
-error[E0282]: type annotations needed
-  --> $DIR/E0283.rs:35:24
-   |
-LL |     let bar = foo_impl.into() * 1u32;
-   |                        ^^^^
-   |
-help: try using a fully qualified path to specify the expected types
-   |
-LL |     let bar = <Impl as Into<T>>::into(foo_impl) * 1u32;
-   |               ++++++++++++++++++++++++        ~
-
 error[E0283]: type annotations needed
   --> $DIR/E0283.rs:35:24
    |
 LL |     let bar = foo_impl.into() * 1u32;
-   |               -------- ^^^^
-   |               |
-   |               type must be known at this point
+   |                        ^^^^
    |
 note: multiple `impl`s satisfying `Impl: Into<_>` found
   --> $DIR/E0283.rs:17:1
@@ -44,7 +31,7 @@ help: try using a fully qualified path to specify the expected types
 LL |     let bar = <Impl as Into<T>>::into(foo_impl) * 1u32;
    |               ++++++++++++++++++++++++        ~
 
-error: aborting due to 3 previous errors
+error: aborting due to 2 previous errors
 
-Some errors have detailed explanations: E0282, E0283, E0790.
-For more information about an error, try `rustc --explain E0282`.
+Some errors have detailed explanations: E0283, E0790.
+For more information about an error, try `rustc --explain E0283`.