2011-06-04 15:04:40 -05:00
|
|
|
// error-pattern: literal
|
|
|
|
|
|
|
|
fn main() {
|
2011-09-01 20:49:10 -05:00
|
|
|
// #fmt's first argument must be a literal. Hopefully this
|
2011-07-27 07:19:39 -05:00
|
|
|
// restriction can be eased eventually to just require a
|
|
|
|
// compile-time constant.
|
2011-09-01 20:49:10 -05:00
|
|
|
let x = #fmt[20];
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|