]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0206.stderr
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0206.stderr
1 error[E0206]: the trait `Copy` may not be implemented for this type
2   --> $DIR/E0206.rs:3:15
3    |
4 LL | impl Copy for Foo { }
5    |               ^^^ type is not a structure or enumeration
6
7 error[E0206]: the trait `Copy` may not be implemented for this type
8   --> $DIR/E0206.rs:10:15
9    |
10 LL | impl Copy for &'static mut Bar { }
11    |               ^^^^^^^^^^^^^^^^ type is not a structure or enumeration
12
13 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
14   --> $DIR/E0206.rs:3:1
15    |
16 LL | impl Copy for Foo { }
17    | ^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
18    |
19    = note: the impl does not reference only types defined in this crate
20    = note: define and implement a trait or new type instead
21
22 error: aborting due to 3 previous errors
23
24 Some errors occurred: E0117, E0206.
25 For more information about an error, try `rustc --explain E0117`.