]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-annotation-needed.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / type / type-annotation-needed.stderr
1 error[E0283]: type annotations required: cannot resolve `_: std::convert::Into<std::string::String>`
2   --> $DIR/type-annotation-needed.rs:15:5
3    |
4 LL |     foo(42);
5    |     ^^^
6    |
7 note: required by `foo`
8   --> $DIR/type-annotation-needed.rs:11:1
9    |
10 LL | fn foo<T: Into<String>>(x: i32) {}
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0283`.