7e046edebb
This reverts commit 5f44a1356e
.
Issue #936
9 lines
218 B
Rust
9 lines
218 B
Rust
// error-pattern: literal
|
|
|
|
fn main() {
|
|
// #fmt's first argument must be a literal. Hopefully this
|
|
// restriction can be eased eventually to just require a
|
|
// compile-time constant.
|
|
let x = #fmt[20];
|
|
}
|