1 error[E0658]: type alias impl trait is not permitted here
2 --> $DIR/issue-63279.rs:11:11
4 LL | || -> Closure { || () }
7 = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
8 = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
10 error[E0271]: type mismatch resolving `<[closure@$DIR/issue-63279.rs:11:5: 11:28] as FnOnce<()>>::Output == ()`
11 --> $DIR/issue-63279.rs:8:16
13 LL | type Closure = impl FnOnce();
14 | ^^^^^^^^^^^^^ expected `()`, found opaque type
16 = note: expected unit type `()`
17 found opaque type `impl FnOnce<()>`
19 error: aborting due to 2 previous errors
21 Some errors have detailed explanations: E0271, E0658.
22 For more information about an error, try `rustc --explain E0271`.