Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
issue-74280.rs
blob: c8dc1adec413e856871542e71601a75699f55620 [
file
] [
log
] [
blame
]
// 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
()
{}