]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/constrain_inputs.rs
3 #![feature(type_alias_impl_trait)]
6 type Ty
<'a
> = impl Sized
;
7 fn defining(s
: &str) -> Ty
<'_
> { s }
8 fn execute(ty
: Ty
<'_
>) -> &str { todo!() }
12 type Ty
<'a
> = impl FnOnce() -> &'a
str;
13 fn defining(s
: &str) -> Ty
<'_
> { move || s }
14 fn execute(ty
: Ty
<'_
>) -> &str { ty() }