Feature gate #[static_assert].

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.
This commit is contained in:
Huon Wilson 2015-03-02 21:46:31 +11:00
parent 1576142495
commit c195783c05
9 changed files with 36 additions and 13 deletions

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(static_assert)]
#[static_assert]
static b: bool = true;