Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
cross_inference_rpit.rs
blob: 6afc30b72f41fa0270b7aa4cc1cddd5e4c3c0db7 [
file
] [
log
] [
blame
]
//@ check-pass
fn
foo
(
b
:
bool
)
->
impl
Copy
{
if
b
{
return
(
5
,
6
)
}
let
x
:
(
_
,
_
)
=
foo
(
true
);
println
!(
"{:?}"
,
x
);
(
1u32
,
2u32
)
}
fn
main
()
{
foo
(
false
);
}