blob: bfe30f3706f1d60bec31e19b3b25196d518addb4 [file] [log] [blame]
#![feature(type_alias_impl_trait)]
use std::fmt::Debug;
pub type Foo = impl Debug;
#[define_opaque(Foo)]
const _FOO: Foo = 5;
#[define_opaque(Foo)]
static _BAR: Foo = 22_i32;
//~^ ERROR cycle detected when computing type of `_BAR`
//~| ERROR cycle detected when computing type of `_BAR`
//~| ERROR cycle detected when computing type of `_BAR`
fn main() {}