blob: c8dc1adec413e856871542e71601a75699f55620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Regression test for #74280.
#![feature(type_alias_impl_trait)]
type Test = impl Copy;
#[define_opaque(Test)]
fn test() -> Test {
let y = || -> Test { () };
7 //~ ERROR mismatched types
}
fn main() {}
|