about summary refs log tree commit diff
path: root/tests/ui/span
diff options
context:
space:
mode:
authorAdrian Taylor <adetaylor@chromium.org>2024-12-13 15:40:37 +0000
committerAdrian Taylor <adetaylor@chromium.org>2024-12-13 15:40:37 +0000
commit174dae607c40ca65f5589b22062775a95846f12d (patch)
tree29c6f30703998c8a1375988a1a0927def6a72885 /tests/ui/span
parentdd436ae2a628c523c967a7876873a96c44b1e382 (diff)
downloadrust-174dae607c40ca65f5589b22062775a95846f12d.tar.gz
rust-174dae607c40ca65f5589b22062775a95846f12d.zip
Arbitrary self types v2: adjust diagnostic.
The recently landed PR to adjust arbitrary self types was a bit
overenthusiastic, advising folks to use the new Receiver trait even
before it's been stabilized. Revert to the older wording of the lint in
such cases.
Diffstat (limited to 'tests/ui/span')
-rw-r--r--tests/ui/span/issue-27522.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/span/issue-27522.stderr b/tests/ui/span/issue-27522.stderr
index 04904b0ddc1..c57a100bbe2 100644
--- a/tests/ui/span/issue-27522.stderr
+++ b/tests/ui/span/issue-27522.stderr
@@ -4,8 +4,8 @@ error[E0307]: invalid `self` parameter type: `&SomeType`
 LL |     fn handler(self: &SomeType);
    |                      ^^^^^^^^^
    |
-   = note: type of `self` must be `Self` or some type implementing `Receiver`
-   = help: consider changing to `self`, `&self`, `&mut self`, or a type implementing `Receiver` such as `self: Box<Self>`, `self: Rc<Self>`, or `self: Arc<Self>`
+   = note: type of `self` must be `Self` or a type that dereferences to it
+   = help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
 
 error: aborting due to 1 previous error