rust/tests/ui/type-alias-impl-trait/infinite-cycle-involving-we...

9 lines
148 B
Rust

#![feature(type_alias_impl_trait)]
type T = impl Copy;
//~^ ERROR cannot resolve opaque type
static STATIC: T = None::<&'static T>;
fn main() {}