auto merge of #6359 : kud1ing/rust/fixes, r=bstrie

This commit is contained in:
bors 2013-05-09 07:51:40 -07:00
commit 4757a58798
2 changed files with 2 additions and 2 deletions

View File

@ -3310,7 +3310,7 @@ pub impl Parser {
}
}
if fields.len() == 0 {
self.fatal(fmt!("Unit-like struct should be written as: struct %s;",
self.fatal(fmt!("Unit-like struct should be written as `struct %s;`",
*self.interner.get(class_name)));
}
self.bump();

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error-pattern: Unit-like struct should be written as: struct Foo;
// error-pattern: Unit-like struct should be written as `struct Foo;`
struct Foo {}
fn main() {}