error[E0508]: cannot move out of type `[A; 2]`, a non-copy array
--> src/main.rs:10:1
|
10 | #[bitsize(2)]
| ^^^^^^^^^^^^^
| |
| cannot move out of here
| move occurs because `value[_]` has type `A`, which does not implement the `Copy` trait
|
= note: this error originates in the attribute macro `bilge::bitsize_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider borrowing here
|
10 | &#[bitsize(2)]
| +
removing all attributes from Foo makes this error go away. also "consider borrowing here" is pretty hilarious.
other than the message, not sure if this is an actual issue (adding #[derive(Copy, Clone)] fixes this)
removing all attributes from
Foo
makes this error go away. also "consider borrowing here" is pretty hilarious.other than the message, not sure if this is an actual issue (adding
#[derive(Copy, Clone)]
fixes this)