rust/tests/ui/type-alias-impl-trait/unconstrained-due-to-bad-pa...

15 lines
256 B
Rust

#![feature(type_alias_impl_trait)]
type Tait = impl Copy;
// Make sure that this TAIT isn't considered unconstrained...
fn empty_opaque() -> Tait {
if false {
match empty_opaque() {}
//~^ ERROR non-empty
}
0u8
}
fn main() {}