about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2023-05-11 12:25:01 +0100
committerclubby789 <jamie@hill-daniel.co.uk>2023-05-11 13:21:10 +0100
commit3851a4bb914f74fb3f1d7394479ad810deb653cd (patch)
tree75fa8b4d41626091011676d70d6b9175f8a2210b /compiler/rustc_middle/src
parent4d941cd9812891af3b83dd4de64aa7d8ee99641a (diff)
downloadrust-3851a4bb914f74fb3f1d7394479ad810deb653cd.tar.gz
rust-3851a4bb914f74fb3f1d7394479ad810deb653cd.zip
Improve error for `self: Box<self>`
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/ty/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/util.rs b/compiler/rustc_middle/src/ty/util.rs
index e5b2d342452..bcb51db9bcf 100644
--- a/compiler/rustc_middle/src/ty/util.rs
+++ b/compiler/rustc_middle/src/ty/util.rs
@@ -1253,7 +1253,7 @@ pub enum ExplicitSelf<'tcx> {
 
 impl<'tcx> ExplicitSelf<'tcx> {
     /// Categorizes an explicit self declaration like `self: SomeType`
-    /// into either `self`, `&self`, `&mut self`, `Box<self>`, or
+    /// into either `self`, `&self`, `&mut self`, `Box<Self>`, or
     /// `Other`.
     /// This is mainly used to require the arbitrary_self_types feature
     /// in the case of `Other`, to improve error messages in the common cases,