rust/tests/crashes/137813.rs

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

19 lines
225 B
Rust
Raw Permalink Normal View History

2025-03-07 23:17:25 +01:00
//@ known-bug: #137813
trait AssocConst {
const A: u8;
}
impl<T> AssocConst for (T,) {
const A: u8 = 0;
}
trait Trait {}
impl<U> Trait for () where (U,): AssocConst<A = { 0 }> {}
fn foo()
where
(): Trait,
{
}