Unstable book rust-attrs does not work on generics

Co-authored-by: Peter Todd <pete@petertodd.org>
This commit is contained in:
Ivan Tham 2020-09-08 09:08:25 +08:00 committed by GitHub
parent 3740b0064d
commit 3a3a08585f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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