rust/tests/ui/traits/negative-bounds/supertrait.rs
2023-12-28 00:43:35 +01:00

9 lines
89 B
Rust

// check-pass
#![feature(negative_bounds)]
trait A: !B {}
trait B: !A {}
fn main() {}