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
17
18
error[E0277]: the trait bound `String: LightClone` is not satisfied
 --> tests/ui/enum_string_field.rs:3:17
  |
3 | #[derive(Clone, LightClone)]
  |                 ^^^^^^^^^^ the trait `LightClone` is not implemented for `String`
  |
  = help: the following other types implement trait `LightClone`:
            &T
            ()
            (A, B)
            (A, B, C)
            (A, B, C, D)
            (A, B, C, D, E)
            (A, B, C, D, E, F)
            (A, B, C, D, E, F, G)
          and $N others
  = help: see issue #48214
  = note: this error originates in the derive macro `LightClone` (in Nightly builds, run with -Z macro-backtrace for more info)