add test for alias-bound shadowing, rename folder

This commit is contained in:
lcnr 2024-11-26 13:49:23 +01:00
parent f2abf827c1
commit 7dae9ac852
10 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,19 @@
//@ compile-flags: -Znext-solver
//@ check-pass
trait Super {
type Assoc;
}
trait Bound {
type Assoc: Super<Assoc = u32>;
}
trait Trait: Super {}
// Elaborating the environment results in a `T::Assoc: Super` where-bound.
// This where-bound must not prevent normalization via the `Super<Assoc = u32>`
// item bound.
fn heck<T: Bound<Assoc: Trait>>(x: <T::Assoc as Super>::Assoc) -> u32 {
x
}
fn main() {}