Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
hkl_forbidden3.rs
blob: a4148599f77a361b14eb5bb02f31baa0800face1 [
file
] [
log
] [
blame
]
#![
feature
(
type_alias_impl_trait
)]
type
Opaque
<
'a> = impl Sized + '
a
;
fn
foo
<
'a>(x: &'
a
())
->
&
'
a
()
{
x
}
fn
test
()
->
for
<
'a> fn(&'
a
())
->
Opaque
<
'
a
>
{
foo
//~ ERROR: mismatched types
}
fn
main
()
{}