Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
impl-trait
/
issues
/
issue-74282.rs
blob: 51bd5f67ed574b40575b063cd75250edfff06281 [
file
] [
log
] [
blame
] [
edit
]
#![
feature
(
type_alias_impl_trait
)]
type
Closure
=
impl
Fn
()
->
u64
;
struct
Anonymous
(
Closure
);
fn
bop
(
_
:
Closure
)
{
let
y
=
||
->
Closure
{
||
3
};
Anonymous
(||
{
//~^ ERROR mismatched types
3
//~^^ ERROR mismatched types
})
}
fn
main
()
{}