rust/tests/crashes/129444.rs

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

16 lines
294 B
Rust
Raw Normal View History

2024-08-30 05:38:22 -05:00
//@ known-bug: rust-lang/rust#129444
//@ compile-flags: -Znext-solver=coherence
trait Trait {
type Assoc;
}
struct W<T: Trait>(*mut T);
impl<T: ?Trait> Trait for W<W<W<T>>> {}
trait NoOverlap {}
impl<T: Trait<W<T>>> NoOverlap for T {}
impl<T: Trait<Assoc = u32>> NoOverlap for W<T> {}