2019-02-12 02:10:02 +01:00
|
|
|
// revisions: rpass cfail
|
|
|
|
|
2020-06-29 22:15:11 +01:00
|
|
|
trait Tr where Self::Arr: Sized {
|
2019-02-12 02:10:02 +01:00
|
|
|
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
|
2019-02-12 02:10:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|