2023-02-28 12:13:21 -06:00
|
|
|
#![feature(associated_const_equality)]
|
|
|
|
|
|
|
|
trait T {
|
|
|
|
type A: S<C<X = 0i32> = 34>;
|
2024-05-27 16:53:46 -05:00
|
|
|
//~^ ERROR associated item constraints are not allowed here
|
|
|
|
//~| ERROR associated item constraints are not allowed here
|
2023-02-28 12:13:21 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
trait S {
|
|
|
|
const C: i32;
|
|
|
|
}
|