diff options
Diffstat (limited to 'tests/ui/derives/deriving-bounds.rs')
| -rw-r--r-- | tests/ui/derives/deriving-bounds.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/derives/deriving-bounds.rs b/tests/ui/derives/deriving-bounds.rs new file mode 100644 index 00000000000..95d440420b0 --- /dev/null +++ b/tests/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() {} |
