back-ticks
This commit is contained in:
@@ -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() {}
|
||||||
|
|||||||
Reference in New Issue
Block a user