File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ // ignore-wasm32 FIXME: ignoring wasm as it suggests slightly different impls
2+
13// Regression test for #72616, it used to emit incorrect diagnostics, like:
24// error[E0283]: type annotations needed for `String`
35// --> src/main.rs:8:30
Original file line number Diff line number Diff line change 11error[E0283]: type annotations needed
2- --> $DIR/issue-72616.rs:20 :37
2+ --> $DIR/issue-72616.rs:22 :37
33 |
44LL | if String::from("a") == "a".try_into().unwrap() {}
55 | -- ^^^^^^^^
@@ -17,7 +17,7 @@ LL | if String::from("a") == <&str as TryInto<T>>::try_into("a").unwrap(
1717 | +++++++++++++++++++++++++++++++ ~
1818
1919error[E0283]: type annotations needed
20- --> $DIR/issue-72616.rs:20 :37
20+ --> $DIR/issue-72616.rs:22 :37
2121 |
2222LL | if String::from("a") == "a".try_into().unwrap() {}
2323 | ^^^^^^^^
You can’t perform that action at this time.
0 commit comments