]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-74280.rs
d5b90a49b05218641a7e1011b50976157ab313f0
[rust.git] / src / test / 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     //~^ ERROR: concrete type differs from previous defining opaque type use
10     7
11 }
12
13 fn main() {}