mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
17 lines
352 B
Rust
17 lines
352 B
Rust
// Regression test for issue #118040.
|
|
// Ensure that we support assoc const eq bounds where the assoc const comes from a supertrait.
|
|
|
|
//@ check-pass
|
|
|
|
#![feature(associated_const_equality)]
|
|
|
|
trait Trait: SuperTrait {}
|
|
trait SuperTrait: SuperSuperTrait<i32> {}
|
|
trait SuperSuperTrait<T> {
|
|
const K: T;
|
|
}
|
|
|
|
fn take(_: impl Trait<K = 0>) {}
|
|
|
|
fn main() {}
|