jam1garner / jam1garner/binread
Array size error BinRead macro
- Dominant language
- Rust
- Stars
- 267
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
First of all, thank you for your time reading this! I'm having an issue with the ```BinRead``` macro. I'm trying to create a simple struct,
```
#[derive(Debug, BinRead)]
struct Dummy {
name: [char; 48],
}
```
But I get the error,
```the trait bound [char; 48]: BinRead is not satisfied
the following implementations were found:
<[B; 0] as BinRead>
<[B; 10] as BinRead>
<[B; 11] as BinRead>
<[B; 12] as BinRead>
and 29 othersrustc[E0277](https://doc.rust-lang.org/error-index.html#E0277)
```
Do you guys know why that might be? Or maybe how could I fix it?
Thank you in advance!
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported BinRead derive with the Dummy struct and [char; 48] field. Inspect the BinRead implementations used for arrays and determine whether the reported trait error is an implementation limitation; done means the case is supported or the limitation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- reverse-engineering
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100