2022-02-02 16:42:37 +00:00
|
|
|
// Checking that none of these ICE, which was introduced in
|
|
|
|
// https://github.com/rust-lang/rust/issues/93553
|
|
|
|
trait Foo {
|
|
|
|
type Bar;
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Baz: Foo {
|
|
|
|
const Bar: Self::Bar;
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Baz2: Foo {
|
|
|
|
const Bar: u32;
|
|
|
|
|
|
|
|
fn foo() -> Self::Bar;
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Baz3 {
|
|
|
|
const BAR: usize;
|
|
|
|
const QUX: Self::BAR;
|
2023-11-24 09:53:10 +01:00
|
|
|
//~^ ERROR expected type, found constant
|
2022-02-02 16:42:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|