about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorAxary <bastian_kauschke@hotmail.de>2018-11-20 14:43:16 +0100
committerAxary <bastian_kauschke@hotmail.de>2018-11-20 14:43:16 +0100
commit88d60941da317d8e9deee34d2ed5e8dbb54f928c (patch)
treec4b3fa90ef189c090a0373f24e9b12973a574732 /src/libsyntax/parse
parent5bfdcc1ab1c94baa4865093b6c36fb15416e6a4d (diff)
downloadrust-88d60941da317d8e9deee34d2ed5e8dbb54f928c.tar.gz
rust-88d60941da317d8e9deee34d2ed5e8dbb54f928c.zip
improve error note
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 18929af4718..e4a4c1f5a7c 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -1828,7 +1828,7 @@ impl<'a> Parser<'a> {
             let mut err = self.struct_span_err(self.prev_span,
                 "unexpected `self` argument in function");
             err.span_label(self.prev_span,
-                "`self` is only valid as the first argument of a trait function");
+                "`self` is only valid as the first argument of an associated function");
             return Err(err);
         }