parse_generic_bounds: account for negative lifetime bounds
This commit is contained in:
parent
4625ba4872
commit
b5f00beaa5
8 changed files with 83 additions and 48 deletions
|
|
@ -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() {}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue