summaryrefslogtreecommitdiffstats
path: root/src/test/ui/codemap_tests/empty_span.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/codemap_tests/empty_span.stderr')
-rw-r--r--src/test/ui/codemap_tests/empty_span.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/codemap_tests/empty_span.stderr b/src/test/ui/codemap_tests/empty_span.stderr
new file mode 100644
index 000000000..e36f59ee5
--- /dev/null
+++ b/src/test/ui/codemap_tests/empty_span.stderr
@@ -0,0 +1,9 @@
+error[E0321]: cross-crate traits with a default impl, like `Send`, can only be implemented for a struct/enum type, not `&'static Foo`
+ --> $DIR/empty_span.rs:7:5
+ |
+LL | unsafe impl Send for &'static Foo { }
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't implement cross-crate trait with a default impl for non-struct/enum type
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0321`.