This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
49b751dda1
rust
/
src
/
test
/
compile-fail
/
static-assert2.rs
5 lines
90 B
Rust
Raw
Normal View
History
Unescape
Escape
Implement static_assert attribute This verifies that a static item evaluates to true, at compile time.
2013-05-21 19:26:45 -05:00
#[
static_assert
]
rustc: add a lint to enforce uppercase statics.
2013-06-30 22:51:13 -05:00
static
E
:
bool
=
1
=
=
2
;
//~ ERROR static assertion failed
Implement static_assert attribute This verifies that a static item evaluates to true, at compile time.
2013-05-21 19:26:45 -05:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink