diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2023-05-11 12:25:01 +0100 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2023-05-11 13:21:10 +0100 |
| commit | 3851a4bb914f74fb3f1d7394479ad810deb653cd (patch) | |
| tree | 75fa8b4d41626091011676d70d6b9175f8a2210b /compiler/rustc_middle/src/ty | |
| parent | 4d941cd9812891af3b83dd4de64aa7d8ee99641a (diff) | |
| download | rust-3851a4bb914f74fb3f1d7394479ad810deb653cd.tar.gz rust-3851a4bb914f74fb3f1d7394479ad810deb653cd.zip | |
Improve error for `self: Box<self>`
Diffstat (limited to 'compiler/rustc_middle/src/ty')
| -rw-r--r-- | compiler/rustc_middle/src/ty/util.rs | 2 |
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, |
