summaryrefslogtreecommitdiffstats
path: root/src/test/ui/inference/issue-72616.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/inference/issue-72616.rs')
-rw-r--r--src/test/ui/inference/issue-72616.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/ui/inference/issue-72616.rs b/src/test/ui/inference/issue-72616.rs
index 5e5a3babf..69ade1a75 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
@@ -18,7 +20,8 @@ pub fn main() {
}
{
if String::from("a") == "a".try_into().unwrap() {}
- //~^ ERROR: type annotations needed
+ //~^ ERROR type annotations needed
+ //~| ERROR type annotations needed
}
{
let _: String = match "_".try_into() {