rust/tests/ui/parser/issues/issue-17718-const-mut.rs
2023-01-11 09:32:08 +00:00

8 lines
138 B
Rust

const
mut //~ ERROR: const globals cannot be mutable
//~^^ HELP you might want to declare a static instead
FOO: usize = 3;
fn main() {
}