light_clone 0.4.1

Compile-time enforcement for O(1) clone operations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0277]: the trait bound `NoClone: Clone` is not satisfied
 --> tests/ui/missing_clone.rs:5:8
  |
5 | struct NoClone {
  |        ^^^^^^^ the trait `Clone` is not implemented for `NoClone`
  |
note: required by a bound in `LightClone`
 --> src/trait_def.rs
  |
  | pub trait LightClone: Clone {
  |                       ^^^^^ required by this bound in `LightClone`
help: consider annotating `NoClone` with `#[derive(Clone)]`
  |
5 + #[derive(Clone)]
6 | struct NoClone {
  |