about summary refs log tree commit diff
path: root/tests/ui/codemap_tests/empty_span.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/codemap_tests/empty_span.rs')
-rw-r--r--tests/ui/codemap_tests/empty_span.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/codemap_tests/empty_span.rs b/tests/ui/codemap_tests/empty_span.rs
new file mode 100644
index 00000000000..7753e2eceb5
--- /dev/null
+++ b/tests/ui/codemap_tests/empty_span.rs
@@ -0,0 +1,8 @@
+#![feature(negative_impls)]
+fn main() {
+    struct Foo;
+
+    impl !Sync for Foo {}
+
+    unsafe impl Send for &'static Foo { } //~ ERROR cross-crate traits with a default impl
+}