You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)The text was updated successfully, but these errors were encountered: