about summary refs log tree commit diff
path: root/tests/ui/traits/syntax-polarity.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/syntax-polarity.rs')
-rw-r--r--tests/ui/traits/syntax-polarity.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/traits/syntax-polarity.rs b/tests/ui/traits/syntax-polarity.rs
new file mode 100644
index 00000000000..c809f9e89f9
--- /dev/null
+++ b/tests/ui/traits/syntax-polarity.rs
@@ -0,0 +1,21 @@
+// run-pass
+#![allow(dead_code)]
+// pretty-expanded FIXME #23616
+
+#![feature(negative_impls)]
+
+struct TestType;
+
+impl TestType {}
+
+trait TestTrait {}
+
+impl !Send for TestType {}
+
+struct TestType2<T>(T);
+
+impl<T> TestType2<T> {}
+
+impl<T> !Send for TestType2<T> {}
+
+fn main() {}