rust/tests/incremental/issue-54242.rs

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

21 lines
309 B
Rust
Raw Normal View History

//@ 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];
2022-06-02 12:42:29 -05:00
//[cfail]~^ ERROR cycle detected when evaluating type-level constant
}
fn main() {}