]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-74280.rs
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[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() {}