blob: 68b653ff3c52b812b47b7710b91d3168b84fafc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Check for recursion involving references to trait-associated const.
trait Foo {
const BAR: u32;
}
const TRAIT_REF_BAR: u32 = <GlobalTraitRef>::BAR;
struct GlobalTraitRef;
impl Foo for GlobalTraitRef {
const BAR: u32 = TRAIT_REF_BAR; //~ ERROR E0391
}
fn main() {}
|