about summary refs log tree commit diff
path: root/tests/ui/trait-bounds/negative-bound-not-supported-58857.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/trait-bounds/negative-bound-not-supported-58857.rs')
-rw-r--r--tests/ui/trait-bounds/negative-bound-not-supported-58857.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/trait-bounds/negative-bound-not-supported-58857.rs b/tests/ui/trait-bounds/negative-bound-not-supported-58857.rs
new file mode 100644
index 00000000000..0a0b70a216b
--- /dev/null
+++ b/tests/ui/trait-bounds/negative-bound-not-supported-58857.rs
@@ -0,0 +1,8 @@
+// https://github.com/rust-lang/rust/issues/58857
+struct Conj<A> {a : A}
+trait Valid {}
+
+impl<A: !Valid> Conj<A>{}
+//~^ ERROR negative bounds are not supported
+
+fn main() {}