granite-rust/src/test/incremental/issue-54242.rs

18 lines
290 B
Rust
Raw Normal View History

// revisions: rpass cfail
2020-06-29 22:15:11 +01:00
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];
2020-09-09 14:04:27 +02:00
//[cfail]~^ ERROR cycle detected when simplifying constant
}
fn main() {}