You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static text :i32 = 1i32;fnread_block(text:&str){}fnmain(){}
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
The text was updated successfully, but these errors were encountered:
The implementation mirrors the one for "constant defined here" annotation
used for constant patterns in the irrefutable-pattern case.
Fixes: rust-lang#23716
resolve: print location of static for "static in pattern" error
The implementation mirrors the one for "constant defined here" annotation used for constant patterns in the irrefutable-pattern case.
Fixes: rust-lang#23716
Rustc version: rustc 1.0.0-nightly (b0aad7d 2015-03-22) (built 2015-03-23)
The text was updated successfully, but these errors were encountered: