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