blob: ad641eaa00d38afa4721054eba06d8b81a1e86a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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() {}
|