rust-bindgen icon indicating copy to clipboard operation
rust-bindgen copied to clipboard

Bindgen trying to derive default for types that can't be.

Open hcldan opened this issue 7 months ago • 0 comments

pub __bindgen_padding_0: [u8; 40usize], | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait Default is not implemented for [u8; 40]

This very well may be something I (should) have to work around, but could you please explain the meaning of "when possible" in the doc?

Image

$ rustup show
Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\ddumont\.rustup

installed toolchains
--------------------

stable-x86_64-pc-windows-msvc (default)
1.86.0-x86_64-pc-windows-msvc

active toolchain
----------------

stable-x86_64-pc-windows-msvc (default)
rustc 1.85.0 (4d91de4e4 2025-02-17)

hcldan avatar May 08 '25 14:05 hcldan