blob: be7024dcbf18046ca6d9d135f67dcc80fb6cd22e [file]
//@ compile-flags: -Znext-solver
//@ check-pass
// Regression test for https://github.com/rust-lang/trait-system-refactor-initiative/issues/249
const CONST: &str = "hi";
trait ToUnit {
type Assoc;
}
impl<T> ToUnit for T {
type Assoc = ();
}
fn foo()
where
<[u8; CONST.len()] as ToUnit>::Assoc: Sized,
{}
fn main(){}