parse_generic_bounds: account for negative lifetime bounds

This commit is contained in:
Mazdak Farrokhzad 2019-12-08 12:19:53 +01:00
parent 4625ba4872
commit b5f00beaa5
8 changed files with 83 additions and 48 deletions

View file

@ -2,6 +2,6 @@ struct Conj<A> {a : A}
trait Valid {}
impl<A: !Valid> Conj<A>{}
//~^ ERROR negative trait bounds are not supported
//~^ ERROR negative bounds are not supported
fn main() {}

View file

@ -1,10 +1,10 @@
error: negative trait bounds are not supported
error: negative bounds are not supported
--> $DIR/issue-58857.rs:4:7
|
LL | impl<A: !Valid> Conj<A>{}
| ^^^^^^^^ negative trait bounds are not supported
| ^^^^^^^^ negative bounds are not supported
|
= help: remove the trait bound
= help: remove the bound
error: aborting due to previous error