rust/src/test/compile-fail/extfmt-non-literal2.rs
2011-06-04 17:10:04 -04:00

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);
}