Unstable book rust-attrs does not work on generics
Co-authored-by: Peter Todd <pete@petertodd.org>
This commit is contained in:
parent
3740b0064d
commit
3a3a08585f
@ -14,7 +14,7 @@ with `cargo check`) as an alternative to `rustc -Z print-type-sizes`
|
|||||||
that is way more verbose.
|
that is way more verbose.
|
||||||
|
|
||||||
Options provided by `#[rustc_layout(...)]` are `debug`, `size`, `align`,
|
Options provided by `#[rustc_layout(...)]` are `debug`, `size`, `align`,
|
||||||
`abi`. Note that it only work best with sized type without generics.
|
`abi`. Note that it only works on sized types without generics.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user