10 lines
227 B
Rust
10 lines
227 B
Rust
|
// xfail-stage0
|
||
|
// 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.
|
||
|
auto x = #fmt(20);
|
||
|
}
|