Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
da873169707da0bdbc8a53d51bf1272ef6d365b8
/
.
/
src
/
test
/
ui
/
type
/
type-annotation-needed.rs
blob: b9bf6d79b1c8922b04e873725a043e4fdee2accb [
file
] [
log
] [
blame
]
fn
foo
<
T
:
Into
<
String
>>(
x
:
i32
)
{}
//~^ NOTE required by
//~| NOTE
fn
main
()
{
foo
(
42
);
//~^ ERROR type annotations needed
//~| NOTE cannot infer type
//~| NOTE cannot satisfy
}