2020-04-28 18:29:26 -05:00
|
|
|
// Check for recursion involving references to impl-associated const.
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
const BAR: u32;
|
|
|
|
}
|
|
|
|
|
2022-03-08 11:20:31 -06:00
|
|
|
const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
|
2020-04-28 18:29:26 -05:00
|
|
|
|
|
|
|
struct GlobalImplRef;
|
|
|
|
|
|
|
|
impl GlobalImplRef {
|
2022-03-08 11:20:31 -06:00
|
|
|
const BAR: u32 = IMPL_REF_BAR; //~ ERROR E0391
|
2020-04-28 18:29:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|