Sign in
rust
/
rust
/
548b5d2406cb0a79d67e745dc3bf45e7eddbb607
/
.
/
tests
/
ui
/
type
/
type-annotation-needed.rs
blob: 347887f4bcfd5584ae8f856fa678c701768a3269 [
file
] [
log
] [
blame
]
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 cannot satisfy
}