]> git.lizzy.rs Git - rust.git/blob - src/test/ui/range/range_traits-2.stderr
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / test / ui / range / range_traits-2.stderr
1 error[E0204]: the trait `Copy` may not be implemented for this type
2   --> $DIR/range_traits-2.rs:3:10
3    |
4 LL | #[derive(Copy, Clone)]
5    |          ^^^^
6 LL | struct R(Range<usize>);
7    |          ------------ this field does not implement `Copy`
8    |
9    = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0204`.