rust/tests/rustdoc-ui/associated-constant-not-allowed-102467.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
385 B
Rust
Raw Normal View History

2023-09-24 07:09:38 -05:00
// Regression test for <https://github.com/rust-lang/rust/issues/102467>.
// It ensures that the expected error is displayed.
#![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
2023-09-24 07:09:38 -05:00
}
trait S {
const C: i32;
}
fn main() {}