about summary refs log tree commit diff
path: root/src/test/ui/inference
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/inference
parent70b29f7c2d6d4b86d5b1492f3aa63969a62b25bf (diff)
downloadrust-c8746766cb2e375c8b9eeb1bab656aca4cc2a9d1.tar.gz
rust-c8746766cb2e375c8b9eeb1bab656aca4cc2a9d1.zip
Rework ambiguity errors
Diffstat (limited to 'src/test/ui/inference')
-rw-r--r--src/test/ui/inference/issue-72690.stderr36
1 files changed, 9 insertions, 27 deletions
diff --git a/src/test/ui/inference/issue-72690.stderr b/src/test/ui/inference/issue-72690.stderr
index 3504b294ab2..d4eeda07366 100644
--- a/src/test/ui/inference/issue-72690.stderr
+++ b/src/test/ui/inference/issue-72690.stderr
@@ -12,9 +12,7 @@ error[E0283]: type annotations needed
   --> $DIR/issue-72690.rs:7:22
    |
 LL |     String::from("x".as_ref());
-   |                  --- ^^^^^^
-   |                  |
-   |                  type must be known at this point
+   |                      ^^^^^^
    |
    = note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
            - impl AsRef<OsStr> for str;
@@ -41,9 +39,7 @@ error[E0283]: type annotations needed
   --> $DIR/issue-72690.rs:12:26
    |
 LL |     |x| String::from("x".as_ref());
-   |                      --- ^^^^^^
-   |                      |
-   |                      type must be known at this point
+   |                          ^^^^^^
    |
    = note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
            - impl AsRef<OsStr> for str;
@@ -59,9 +55,7 @@ error[E0283]: type annotations needed for `&T`
   --> $DIR/issue-72690.rs:17:9
    |
 LL |     let _ = "x".as_ref();
-   |         ^   --- ------ required by a bound introduced by this call
-   |             |
-   |             type must be known at this point
+   |         ^       ------ type must be known at this point
    |
    = note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
            - impl AsRef<OsStr> for str;
@@ -87,9 +81,7 @@ error[E0283]: type annotations needed
   --> $DIR/issue-72690.rs:21:22
    |
 LL |     String::from("x".as_ref());
-   |                  --- ^^^^^^
-   |                  |
-   |                  type must be known at this point
+   |                      ^^^^^^
    |
    = note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
            - impl AsRef<OsStr> for str;
@@ -115,9 +107,7 @@ error[E0283]: type annotations needed
   --> $DIR/issue-72690.rs:28:22
    |
 LL |     String::from("x".as_ref());
-   |                  --- ^^^^^^
-   |                  |
-   |                  type must be known at this point
+   |                      ^^^^^^
    |
    = note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
            - impl AsRef<OsStr> for str;
@@ -143,9 +133,7 @@ error[E0283]: type annotations needed
   --> $DIR/issue-72690.rs:37:22
    |
 LL |     String::from("x".as_ref());
-   |                  --- ^^^^^^
-   |                  |
-   |                  type must be known at this point
+   |                      ^^^^^^
    |
    = note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
            - impl AsRef<OsStr> for str;
@@ -171,9 +159,7 @@ error[E0283]: type annotations needed
   --> $DIR/issue-72690.rs:46:22
    |
 LL |     String::from("x".as_ref());
-   |                  --- ^^^^^^
-   |                  |
-   |                  type must be known at this point
+   |                      ^^^^^^
    |
    = note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
            - impl AsRef<OsStr> for str;
@@ -199,9 +185,7 @@ error[E0283]: type annotations needed
   --> $DIR/issue-72690.rs:53:22
    |
 LL |     String::from("x".as_ref());
-   |                  --- ^^^^^^
-   |                  |
-   |                  type must be known at this point
+   |                      ^^^^^^
    |
    = note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
            - impl AsRef<OsStr> for str;
@@ -227,9 +211,7 @@ error[E0283]: type annotations needed
   --> $DIR/issue-72690.rs:62:22
    |
 LL |     String::from("x".as_ref());
-   |                  --- ^^^^^^
-   |                  |
-   |                  type must be known at this point
+   |                      ^^^^^^
    |
    = note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`:
            - impl AsRef<OsStr> for str;