diff options
Diffstat (limited to 'tests/ui/error-codes/E0206.rs')
-rw-r--r-- | tests/ui/error-codes/E0206.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0206.rs b/tests/ui/error-codes/E0206.rs new file mode 100644 index 000000000..0f3d427ce --- /dev/null +++ b/tests/ui/error-codes/E0206.rs @@ -0,0 +1,8 @@ +#[derive(Copy, Clone)] +struct Bar; + +impl Copy for &'static mut Bar { } +//~^ ERROR the trait `Copy` may not be implemented for this type + +fn main() { +} |