summaryrefslogtreecommitdiffstats
path: root/src/test/ui/derives/deriving-bounds.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/derives/deriving-bounds.rs')
-rw-r--r--src/test/ui/derives/deriving-bounds.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/derives/deriving-bounds.rs b/src/test/ui/derives/deriving-bounds.rs
new file mode 100644
index 000000000..95d440420
--- /dev/null
+++ b/src/test/ui/derives/deriving-bounds.rs
@@ -0,0 +1,11 @@
+#[derive(Send)]
+//~^ ERROR cannot find derive macro `Send` in this scope
+//~| ERROR cannot find derive macro `Send` in this scope
+struct Test;
+
+#[derive(Sync)]
+//~^ ERROR cannot find derive macro `Sync` in this scope
+//~| ERROR cannot find derive macro `Sync` in this scope
+struct Test1;
+
+pub fn main() {}