about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2015-08-03 10:43:13 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2015-08-03 10:43:13 +0200
commitd6f713be3fbdcfe3508fd8801a0e2eda0c076307 (patch)
tree2121a00776fdcbbe5213bdaba312580e3d24a748
parentea5cc76aac7094abfe01657db8312c8450b15200 (diff)
downloadrust-d6f713be3fbdcfe3508fd8801a0e2eda0c076307.tar.gz
rust-d6f713be3fbdcfe3508fd8801a0e2eda0c076307.zip
Improve E0423 error message
-rw-r--r--src/librustc_resolve/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs
index fa9c7a2038c..85c2f0cbe05 100644
--- a/src/librustc_resolve/lib.rs
+++ b/src/librustc_resolve/lib.rs
@@ -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);
         },