summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0277-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/error-codes/E0277-2.rs')
-rw-r--r--src/test/ui/error-codes/E0277-2.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0277-2.rs b/src/test/ui/error-codes/E0277-2.rs
new file mode 100644
index 000000000..428518705
--- /dev/null
+++ b/src/test/ui/error-codes/E0277-2.rs
@@ -0,0 +1,18 @@
+struct Foo {
+ bar: Bar
+}
+
+struct Bar {
+ baz: Baz
+}
+
+struct Baz {
+ x: *const u8
+}
+
+fn is_send<T: Send>() { }
+
+fn main() {
+ is_send::<Foo>();
+ //~^ ERROR `*const u8` cannot be sent between threads safely
+}