back-ticks
This commit is contained in:
parent
ca95e7f94e
commit
e3230330b7
2 changed files with 2 additions and 2 deletions
|
@ -3310,7 +3310,7 @@ pub impl Parser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if fields.len() == 0 {
|
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.interner.get(class_name)));
|
||||||
}
|
}
|
||||||
self.bump();
|
self.bump();
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// 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 {}
|
struct Foo {}
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue