Closed
Description
Rustc version: rustc 1.0.0-nightly (b0aad7d 2015-03-22) (built 2015-03-23)
static text : i32 = 1i32;
fn read_block(text: &str) {
}
fn main() {
}
src\main.rs:79:15: 79:19 error: static variables cannot be referenced in a patte
rn, use a `const` instead
src\main.rs:79 fn read_block(text: &str) {
^~~~
error: aborting due to previous error