]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-74280.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[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() {}