Improve E0423 error message

This commit is contained in:
Guillaume Gomez 2015-08-03 10:43:13 +02:00
parent ea5cc76aac
commit d6f713be3f

View File

@ -313,8 +313,8 @@ fn resolve_error<'b, 'a:'b, 'tcx:'a>(resolver: &'b Resolver<'a, 'tcx>, span: syn
},
ResolutionError::StructVariantUsedAsFunction(path_name) => {
span_err!(resolver.session, span, E0423,
"`{}` is a struct variant name, but \
this expression \
"`{}` is the name of a struct or struct variant, \
but this expression \
uses it like a function name",
path_name);
},