]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-63279.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / ui / type-alias-impl-trait / issue-63279.rs
1 // compile-flags: -Zsave-analysis
2
3 #![feature(type_alias_impl_trait)]
4
5 type Closure = impl FnOnce();
6
7 fn c() -> Closure {
8     || -> Closure { || () } //~ ERROR: mismatched types
9 }
10
11 fn main() {}