]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-63279.rs
b97192a2aed4a19aa4b2eb86d6227c57fe837875
[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(); //~ ERROR: type mismatch resolving
6
7 fn c() -> Closure {
8     || -> Closure { || () }
9 }
10
11 fn main() {}