rust/tests/ui/trait-bounds/negative-bound-not-supported-58857.rs
2025-09-12 14:45:12 -04:00

9 lines
174 B
Rust

// https://github.com/rust-lang/rust/issues/58857
struct Conj<A> {a : A}
trait Valid {}
impl<A: !Valid> Conj<A>{}
//~^ ERROR negative bounds are not supported
fn main() {}