Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
inference
/
issue-86162-1.rs
blob: 5a547eb38d1f9f2e683207265a70d59f100cfb39 [
file
] [
log
] [
blame
] [
edit
]
// Regression test of #86162.
fn
foo
(
x
:
impl
Clone
)
{}
fn
gen
<
T
>()
->
T
{
todo
!()
}
fn
main
()
{
foo
(
gen
());
//<- Do not suggest `foo::<impl Clone>()`!
//~^ ERROR: type annotations needed
}