]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/issue-63279.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-63279.rs
CommitLineData
74b04a01
XL
1// compile-flags: -Zsave-analysis
2
6a06907d
XL
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
60c5eb7d
XL
7
8type Closure = impl FnOnce(); //~ ERROR: type mismatch resolving
9
10fn c() -> Closure {
6a06907d 11 || -> Closure { || () } //[min_tait]~ ERROR: not permitted here
60c5eb7d
XL
12}
13
14fn main() {}