Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
unconstrained-due-to-bad-pattern.rs
blob: 3f4d9d244ec34b573cbf4ac29c1beed55f08e963 [
file
]
#![
feature
(
type_alias_impl_trait
)]
type
Tait
=
impl
Copy
;
// Make sure that this TAIT isn't considered unconstrained...
#[
define_opaque
(
Tait
)]
fn
empty_opaque
()
->
Tait
{
if
false
{
match
empty_opaque
()
{}
//~^ ERROR non-empty
}
0u8
}
fn
main
()
{}