diff options
| author | XuefengWu <benewu@gmail.com> | 2015-05-10 17:09:56 +0800 |
|---|---|---|
| committer | Xuefeng Wu <benewu@gmail.com> | 2015-05-16 17:22:27 +0800 |
| commit | 1e39d9b95dfd6d0f8cd4883c62f812532d15c403 (patch) | |
| tree | ad18903d1172b3980e154f489553ac12b9ed75aa | |
| parent | 8e82c21bf3479d338fcb8f378095daa8e698de1e (diff) | |
| download | rust-1e39d9b95dfd6d0f8cd4883c62f812532d15c403.tar.gz rust-1e39d9b95dfd6d0f8cd4883c62f812532d15c403.zip | |
change Self type error message
| -rw-r--r-- | src/librustc_resolve/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index 6f8e70dad2e..7347b59dd4c 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -2367,7 +2367,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> { maybe_qself.is_none() && path.segments[0].identifier.name == self_type_name; let msg = if is_invalid_self_type_name { - "expected type name, found keyword `Self`".to_string() + "use of Self outside of an impl".to_string() } else { format!("use of undeclared {} `{}`", kind, path_names_to_string(path, 0)) |
