2011-06-04 15:04:40 -05:00
|
|
|
// error-pattern: literal
|
|
|
|
|
|
|
|
fn main() {
|
2012-10-12 14:32:36 -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.
|
2012-08-22 19:24:52 -05:00
|
|
|
let x = fmt!(20);
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|