1 // compile-flags: -Zsave-analysis
3 // revisions: min_tait full_tait
4 #![feature(min_type_alias_impl_trait)]
5 #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
6 //[full_tait]~^ WARN incomplete
8 type Closure = impl FnOnce(); //~ ERROR: type mismatch resolving
11 || -> Closure { || () } //[min_tait]~ ERROR: not permitted here