rust/tests/ui/type-alias-impl-trait/issue-74280.rs

13 lines
192 B
Rust

// Regression test for #74280.
#![feature(type_alias_impl_trait)]
type Test = impl Copy;
fn test() -> Test {
let y = || -> Test { () };
7 //~ ERROR mismatched types
}
fn main() {}