summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-associated_const_equality.rs
blob: 2534c527be4636626a13314a56c5b4f5fc6c1ab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub trait TraitWAssocConst {
  const A: usize;
}
pub struct Demo {}

impl TraitWAssocConst for Demo {
  const A: usize = 32;
}

fn foo<A: TraitWAssocConst<A=32>>() {}
//~^ ERROR associated const equality

fn main() {
  foo::<Demo>();
}