diff options
| author | lcnr <rust@lcnr.de> | 2022-11-08 14:16:49 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-11-08 14:48:07 +0100 |
| commit | 91d5a32bc59c50af762928da5a02b024b36c1891 (patch) | |
| tree | 2ea4c62a4844c8b49b231921c57d11fe510ec46c | |
| parent | 003ed76e41e9b8247d2b2fc040da76969e86d4a6 (diff) | |
| download | rust-91d5a32bc59c50af762928da5a02b024b36c1891.tar.gz rust-91d5a32bc59c50af762928da5a02b024b36c1891.zip | |
ignore wasm in test
| -rw-r--r-- | src/test/ui/inference/issue-72616.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/inference/issue-72616.stderr | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/test/ui/inference/issue-72616.rs b/src/test/ui/inference/issue-72616.rs index 7b0f5936d84..69ade1a7515 100644 --- a/src/test/ui/inference/issue-72616.rs +++ b/src/test/ui/inference/issue-72616.rs @@ -1,3 +1,5 @@ +// ignore-wasm32 FIXME: ignoring wasm as it suggests slightly different impls + // Regression test for #72616, it used to emit incorrect diagnostics, like: // error[E0283]: type annotations needed for `String` // --> src/main.rs:8:30 diff --git a/src/test/ui/inference/issue-72616.stderr b/src/test/ui/inference/issue-72616.stderr index da1a7ccdee1..6ee0626cab8 100644 --- a/src/test/ui/inference/issue-72616.stderr +++ b/src/test/ui/inference/issue-72616.stderr @@ -1,5 +1,5 @@ error[E0283]: type annotations needed - --> $DIR/issue-72616.rs:20:37 + --> $DIR/issue-72616.rs:22:37 | LL | if String::from("a") == "a".try_into().unwrap() {} | -- ^^^^^^^^ @@ -17,7 +17,7 @@ LL | if String::from("a") == <&str as TryInto<T>>::try_into("a").unwrap( | +++++++++++++++++++++++++++++++ ~ error[E0283]: type annotations needed - --> $DIR/issue-72616.rs:20:37 + --> $DIR/issue-72616.rs:22:37 | LL | if String::from("a") == "a".try_into().unwrap() {} | ^^^^^^^^ |
