]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0206.rs
Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup
[rust.git] / src / test / ui / error-codes / E0206.rs
1 type Foo = [u8; 256];
2
3 impl Copy for Foo { }
4 //~^ ERROR the trait `Copy` may not be implemented for this type
5 //~| ERROR only traits defined in the current crate can be implemented for arbitrary types
6
7 #[derive(Copy, Clone)]
8 struct Bar;
9
10 impl Copy for &'static mut Bar { }
11 //~^ ERROR the trait `Copy` may not be implemented for this type
12
13 fn main() {
14 }