]> git.lizzy.rs Git - rust.git/commitdiff
ignore wasm in test
authorlcnr <rust@lcnr.de>
Tue, 8 Nov 2022 13:16:49 +0000 (14:16 +0100)
committerlcnr <rust@lcnr.de>
Tue, 8 Nov 2022 13:48:07 +0000 (14:48 +0100)
src/test/ui/inference/issue-72616.rs
src/test/ui/inference/issue-72616.stderr

index 7b0f5936d84ec15f095e6069eb8ba8177c293085..69ade1a7515cb3e6bc521e36e015dfd86cc96e05 100644 (file)
@@ -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
index da1a7ccdee15e5b8e974d74856c8ffa36c4e8629..6ee0626cab85791e0cf973adba9d401e67a6f841 100644 (file)
@@ -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() {}
    |                                     ^^^^^^^^