rust/tests/ui/const-generics/generic_const_exprs/specialization-fuzzing-ice-133639.rs

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

20 lines
434 B
Rust
Raw Normal View History

2024-11-29 17:43:55 +00:00
//@ check-pass
// Regression test for #133639.
#![feature(with_negative_coherence)]
#![feature(min_specialization)]
#![feature(generic_const_exprs)]
//~^ WARNING the feature `generic_const_exprs` is incomplete
#![crate_type = "lib"]
trait Trait {}
struct A<const B: bool>;
trait C {}
impl<const D: u32> Trait for E<D> where A<{ D <= 2 }>: C {}
struct E<const D: u32>;
impl<const D: u32> Trait for E<D> where A<{ D <= 2 }>: C {}