summaryrefslogtreecommitdiff
path: root/tests/ui/ufcs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-04-25 03:11:19 +0200
committerLeón Orell Valerian Liehr <me@fmease.dev>2024-04-30 22:27:19 +0200
commit2a1d748254d3241967cf7d2bad141a371ccc7c99 (patch)
tree25ab33e6bf3dccb549eb31a2c6710cfb6e881e1b /tests/ui/ufcs
parentdec1d16a9be532959cca38c68195a0d1f25f2e89 (diff)
Replace item names containing an error code with something more meaningful
or inline such functions if useless.
Diffstat (limited to 'tests/ui/ufcs')
-rw-r--r--tests/ui/ufcs/ufcs-explicit-self-bad.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/ufcs/ufcs-explicit-self-bad.stderr b/tests/ui/ufcs/ufcs-explicit-self-bad.stderr
index 7c250775475..c48d094daea 100644
--- a/tests/ui/ufcs/ufcs-explicit-self-bad.stderr
+++ b/tests/ui/ufcs/ufcs-explicit-self-bad.stderr
@@ -15,7 +15,7 @@ LL | fn dummy2(&self);
= note: expected signature `fn(&&'a Bar<_>)`
found signature `fn(&Bar<_>)`
-error[E0307]: invalid `self` parameter type: isize
+error[E0307]: invalid `self` parameter type: `isize`
--> $DIR/ufcs-explicit-self-bad.rs:8:18
|
LL | fn foo(self: isize, x: isize) -> isize {
@@ -24,7 +24,7 @@ LL | fn foo(self: isize, x: isize) -> isize {
= 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[E0307]: invalid `self` parameter type: Bar<isize>
+error[E0307]: invalid `self` parameter type: `Bar<isize>`
--> $DIR/ufcs-explicit-self-bad.rs:19:18
|
LL | fn foo(self: Bar<isize>, x: isize) -> isize {
@@ -33,7 +33,7 @@ LL | fn foo(self: Bar<isize>, x: isize) -> isize {
= 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[E0307]: invalid `self` parameter type: &Bar<usize>
+error[E0307]: invalid `self` parameter type: `&Bar<usize>`
--> $DIR/ufcs-explicit-self-bad.rs:23:18
|
LL | fn bar(self: &Bar<usize>, x: isize) -> isize {