rust/tests/incremental/issue-54242.rs
2025-06-30 08:06:08 +00:00

21 lines
290 B
Rust

//@ revisions: rpass cfail
trait Tr
where
(Self::Arr,): Sized,
{
type Arr;
const C: usize = 0;
}
impl Tr for str {
#[cfg(rpass)]
type Arr = [u8; 8];
#[cfg(cfail)]
type Arr = [u8; Self::C];
//[cfail]~^ ERROR cycle detected when caching mir
}
fn main() {}