ignore wasm in test

This commit is contained in:
lcnr 2022-11-08 14:16:49 +01:00
parent 003ed76e41
commit 91d5a32bc5
2 changed files with 4 additions and 2 deletions

View 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

View 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() {}
| ^^^^^^^^