Sign in
rust
/
rust
/
dc0ec741a8a06b0c3bb5596fbb00a4e29fad3877
/
.
/
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
}