2011-05-25 22:49:52 -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.
|
2012-07-30 18:01:07 -05:00
|
|
|
let x = fmt!{"a" + "b"};
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|