diff options
| author | bors <bors@rust-lang.org> | 2015-03-01 06:32:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-03-01 06:32:54 +0000 |
| commit | 0905c8a5ec856a6b972fcb239df2b8f6e82d2418 (patch) | |
| tree | dae5d3ebde7eaaeeaad8b0e67bfb835b33fb5258 /src/test/compile-fail | |
| parent | 341a9ca1e324d7b7427334b32e99e6d8bc82e9a6 (diff) | |
| parent | 60f7732ccd9b0ad50490457ddd02a4a48cf74e74 (diff) | |
| download | rust-0905c8a5ec856a6b972fcb239df2b8f6e82d2418.tar.gz rust-0905c8a5ec856a6b972fcb239df2b8f6e82d2418.zip | |
Auto merge of #22909 - Manishearth:rollup, r=Manishearth
r? @Manishearth
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/nonbool_static_assert.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/compile-fail/nonbool_static_assert.rs b/src/test/compile-fail/nonbool_static_assert.rs new file mode 100644 index 00000000000..d85f58edc90 --- /dev/null +++ b/src/test/compile-fail/nonbool_static_assert.rs @@ -0,0 +1,16 @@ +// Copyright 2015 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![allow(dead_code)] + +#[static_assert] +static E: i32 = 1; //~ ERROR can only have static_assert on a static with type `bool` + +fn main() {} |
