2018-12-16 08:50:49 +00:00
|
|
|
// run-rustfix
|
|
|
|
|
2019-03-11 02:46:44 +00:00
|
|
|
trait Tr: !SuperA {}
|
2019-12-08 11:19:53 +00:00
|
|
|
//~^ ERROR negative bounds are not supported
|
2019-03-11 02:46:44 +00:00
|
|
|
trait Tr2: SuperA + !SuperB {}
|
2019-12-08 11:19:53 +00:00
|
|
|
//~^ ERROR negative bounds are not supported
|
2019-03-11 02:46:44 +00:00
|
|
|
trait Tr3: !SuperA + SuperB {}
|
2019-12-08 11:19:53 +00:00
|
|
|
//~^ ERROR negative bounds are not supported
|
2019-03-11 02:46:44 +00:00
|
|
|
trait Tr4: !SuperA + SuperB
|
2018-12-16 08:50:49 +00:00
|
|
|
+ !SuperC + SuperD {}
|
2019-12-08 11:19:53 +00:00
|
|
|
//~^ ERROR negative bounds are not supported
|
2019-03-11 02:46:44 +00:00
|
|
|
trait Tr5: !SuperA
|
2018-12-16 08:50:49 +00:00
|
|
|
+ !SuperB {}
|
2019-12-08 11:19:53 +00:00
|
|
|
//~^ ERROR negative bounds are not supported
|
2018-12-16 08:50:49 +00:00
|
|
|
|
|
|
|
trait SuperA {}
|
|
|
|
trait SuperB {}
|
|
|
|
trait SuperC {}
|
|
|
|
trait SuperD {}
|
|
|
|
|
|
|
|
fn main() {}
|