Skip to content

Commit fa269e7

Browse files
committed
Auto merge of #27491 - GuillaumeGomez:patch-4, r=Manishearth
2 parents 76ba3f0 + 549de0d commit fa269e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_resolve/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ fn resolve_error<'b, 'a:'b, 'tcx:'a>(resolver: &'b Resolver<'a, 'tcx>, span: syn
313313
},
314314
ResolutionError::StructVariantUsedAsFunction(path_name) => {
315315
span_err!(resolver.session, span, E0423,
316-
"`{}` is a struct variant name, but \
317-
this expression \
316+
"`{}` is the name of a struct or struct variant, \
317+
but this expression \
318318
uses it like a function name",
319319
path_name);
320320
},

src/test/compile-fail/issue-6702.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ struct Monster {
1414

1515

1616
fn main() {
17-
let _m = Monster(); //~ ERROR `Monster` is a struct variant name, but
17+
let _m = Monster(); //~ ERROR `Monster` is the name of a struct or
1818
//~^ HELP did you mean to write: `Monster { /* fields */ }`?
1919
}

0 commit comments

Comments
 (0)