]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/issue-72616.stderr
Added docs to internal_macro const
[rust.git] / src / test / ui / inference / issue-72616.stderr
1 error[E0283]: type annotations needed
2   --> $DIR/issue-72616.rs:20:30
3    |
4 LL |         if String::from("a") == "a".try_into().unwrap() {}
5    |                              ^^ -------------- this method call resolves to `Result<T, <Self as TryInto<T>>::Error>`
6    |                              |
7    |                              cannot infer type
8    |
9    = note: cannot satisfy `String: PartialEq<_>`
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0283`.