about summary refs log tree commit diff
path: root/tests/rustdoc-ui/invalid_associated_const.rs
blob: 6f211a383a6fa9b8a31708a1fea2909f4d2587ce (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(associated_const_equality)]

trait T {
    type A: S<C<X = 0i32> = 34>;
    //~^ ERROR associated type bindings are not allowed here
    //~| ERROR associated type bindings are not allowed here
}

trait S {
    const C: i32;
}