summary refs log tree commit diff
path: root/src/test/compile-fail/nonbool_static_assert.rs
AgeCommit message (Collapse)AuthorLines
2015-03-03Feature gate `#[static_assert]`.Huon Wilson-0/+1
The API this exposes is a little strange (being attached to `static`s), so it makes sense to conservatively feature gate it. If it is highly popular, it is possible to reverse this gating.
2015-02-28Error out when using static_assert on a non-boolean valueBjörn Steinbrink-0/+16
static_assert is documented as working on static with type `bool`, but we currently accept it on any const static and crash when the const has an non-integral type. This is a breaking-change for anyone who used static_assert on types likes i32, which happened to work but seems like an unintended consequence of the missing error checking. [breaking-change] Fixes #22056