2011-06-04 16:04:40 -04:00
|
|
|
// error-pattern: literal
|
|
|
|
|
|
|
|
fn main() {
|
2011-07-27 14:19:39 +02:00
|
|
|
// #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);
|
|
|
|
}
|