auto merge of #6359 : kud1ing/rust/fixes, r=bstrie
This commit is contained in:
commit
4757a58798
@ -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();
|
||||
|
@ -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() {}
|
||||
|
Loading…
Reference in New Issue
Block a user