mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 04:04:06 +00:00
22 lines
493 B
Rust
22 lines
493 B
Rust
// run-rustfix
|
|
|
|
trait Tr: !SuperA {}
|
|
//~^ ERROR negative bounds are not supported
|
|
trait Tr2: SuperA + !SuperB {}
|
|
//~^ ERROR negative bounds are not supported
|
|
trait Tr3: !SuperA + SuperB {}
|
|
//~^ ERROR negative bounds are not supported
|
|
trait Tr4: !SuperA + SuperB
|
|
+ !SuperC + SuperD {}
|
|
//~^ ERROR negative bounds are not supported
|
|
trait Tr5: !SuperA
|
|
+ !SuperB {}
|
|
//~^ ERROR negative bounds are not supported
|
|
|
|
trait SuperA {}
|
|
trait SuperB {}
|
|
trait SuperC {}
|
|
trait SuperD {}
|
|
|
|
fn main() {}
|