We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca95e7f commit e323033Copy full SHA for e323033
src/libsyntax/parse/parser.rs
@@ -3310,7 +3310,7 @@ pub impl Parser {
3310
}
3311
3312
if fields.len() == 0 {
3313
- self.fatal(fmt!("Unit-like struct should be written as: struct %s;",
+ self.fatal(fmt!("Unit-like struct should be written as `struct %s;`",
3314
*self.interner.get(class_name)));
3315
3316
self.bump();
src/test/compile-fail/struct-no-fields.rs
@@ -8,7 +8,7 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
-// error-pattern: Unit-like struct should be written as: struct Foo;
+// error-pattern: Unit-like struct should be written as `struct Foo;`
12
struct Foo {}
13
14
fn main() {}
0 commit comments