]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-74280.rs
Rollup merge of #106732 - durin42:dmitrig-arrayref-ctor, r=nikic
[rust.git] / tests / 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() {}