Sign in
◑
Theme
rust
/
rust
/
08ec41ea3dfd2d30a5747a084d0dbc79fba227d6
/
.
/
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
}