]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-63279.rs
Merge commit 'd0cf3481a84e3aa68c2f185c460e282af36ebc42' into clippyup
[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() {}