mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
13 lines
258 B
Rust
13 lines
258 B
Rust
#![feature(associated_const_equality)]
|
|
|
|
trait T {
|
|
type A: S<C<X = 0i32> = 34>;
|
|
//~^ ERROR associated item constraints are not allowed here
|
|
//~| ERROR associated item constraints are not allowed here
|
|
}
|
|
|
|
trait S {
|
|
const C: i32;
|
|
}
|
|
|
|
fn main() {}
|