Skip to content

Commit

Permalink
Unstable book rust-attrs does not work on generics
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Todd <pete@petertodd.org>
  • Loading branch information
pickfire and petertodd authored Sep 8, 2020
1 parent 3740b00 commit 3a3a085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/unstable-book/src/language-features/rustc-attrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ with `cargo check`) as an alternative to `rustc -Z print-type-sizes`
that is way more verbose.

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

Expand Down

0 comments on commit 3a3a085

Please sign in to comment.