]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-74280.rs
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / issue-74280.rs
1 // Regression test for #74280.
2
3 #![feature(type_alias_impl_trait)]
4
5 type Test = impl Copy;
6
7 fn test() -> Test {
8     let y = || -> Test { () };
9     7 //~ ERROR mismatched types
10 }
11
12 fn main() {}