Skip to content

Commit d6f713b

Browse files
Improve E0423 error message
1 parent ea5cc76 commit d6f713b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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
},

0 commit comments

Comments
 (0)