Sign in
rust
/
rust
/
6bbf64e1dd5ffa08facdd3a0d33178faebca1825
/
.
/
tests
/
ui
/
type
/
type-annotation-needed.rs
blob: a063ad77742a17076aed6478ebfaca3203914623 [
file
]
fn
foo
<
T
:
Into
<
String
>>(
x
:
i32
)
{}
//~^ NOTE required by
//~| NOTE required by
fn
main
()
{
foo
(
42
);
//~^ ERROR type annotations needed
//~| NOTE cannot infer type
//~| NOTE the type must implement
}