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[E0599]: no method named `foo` found for struct `Foo<[u8; 33]>` in the current scope
--> src/main.rs:16:17
|
7 | / bitfield! {
8 | | pub struct Foo(MSB0[u8]);
9 | | impl Debug;
10 | |
11 | | pub u8, foo, _ : 0;
12 | | }
| |_- method `foo` not found for this
...
16 | Foo(buffer).foo();
| ^^^ method not found in `Foo<[u8; 33]>`
|
= note: the method `foo` exists but the following trait bounds were not satisfied:
`[u8; 33]: std::convert::AsRef<[u8]>`
`[u8; 33]: std::convert::AsMut<[u8]>`
If you lower the size to "32" (or less), it works.
The text was updated successfully, but these errors were encountered:
I think this is similar to the issue #21:
Assume the following code:
This will result in:
If you lower the size to "32" (or less), it works.
The text was updated successfully, but these errors were encountered: