parent
c1d2d83ca3
commit
dc4973dfd9
3 changed files with 41 additions and 22 deletions
7
src/test/ui/issues/issue-58857.rs
Normal file
7
src/test/ui/issues/issue-58857.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
struct Conj<A> {a : A}
|
||||
trait Valid {}
|
||||
|
||||
impl<A: !Valid> Conj<A>{}
|
||||
//~^ ERROR negative trait bounds are not supported
|
||||
|
||||
fn main() {}
|
||||
8
src/test/ui/issues/issue-58857.stderr
Normal file
8
src/test/ui/issues/issue-58857.stderr
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
error: negative trait bounds are not supported
|
||||
--> $DIR/issue-58857.rs:4:7
|
||||
|
|
||||
LL | impl<A: !Valid> Conj<A>{}
|
||||
| ^^^^^^^^ help: remove the trait bound
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue