summaryrefslogtreecommitdiffstats
path: root/tests/ui/span/issue-37767.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/span/issue-37767.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/span/issue-37767.stderr')
-rw-r--r--tests/ui/span/issue-37767.stderr78
1 files changed, 78 insertions, 0 deletions
diff --git a/tests/ui/span/issue-37767.stderr b/tests/ui/span/issue-37767.stderr
new file mode 100644
index 000000000..f7732847a
--- /dev/null
+++ b/tests/ui/span/issue-37767.stderr
@@ -0,0 +1,78 @@
+error[E0034]: multiple applicable items in scope
+ --> $DIR/issue-37767.rs:10:7
+ |
+LL | a.foo()
+ | ^^^ multiple `foo` found
+ |
+note: candidate #1 is defined in the trait `A`
+ --> $DIR/issue-37767.rs:2:5
+ |
+LL | fn foo(&mut self) {}
+ | ^^^^^^^^^^^^^^^^^
+note: candidate #2 is defined in the trait `B`
+ --> $DIR/issue-37767.rs:6:5
+ |
+LL | fn foo(&mut self) {}
+ | ^^^^^^^^^^^^^^^^^
+help: disambiguate the associated function for candidate #1
+ |
+LL | A::foo(&a)
+ | ~~~~~~~~~~
+help: disambiguate the associated function for candidate #2
+ |
+LL | B::foo(&a)
+ | ~~~~~~~~~~
+
+error[E0034]: multiple applicable items in scope
+ --> $DIR/issue-37767.rs:22:7
+ |
+LL | a.foo()
+ | ^^^ multiple `foo` found
+ |
+note: candidate #1 is defined in the trait `C`
+ --> $DIR/issue-37767.rs:14:5
+ |
+LL | fn foo(&self) {}
+ | ^^^^^^^^^^^^^
+note: candidate #2 is defined in the trait `D`
+ --> $DIR/issue-37767.rs:18:5
+ |
+LL | fn foo(&self) {}
+ | ^^^^^^^^^^^^^
+help: disambiguate the associated function for candidate #1
+ |
+LL | C::foo(&a)
+ | ~~~~~~~~~~
+help: disambiguate the associated function for candidate #2
+ |
+LL | D::foo(&a)
+ | ~~~~~~~~~~
+
+error[E0034]: multiple applicable items in scope
+ --> $DIR/issue-37767.rs:34:7
+ |
+LL | a.foo()
+ | ^^^ multiple `foo` found
+ |
+note: candidate #1 is defined in the trait `E`
+ --> $DIR/issue-37767.rs:26:5
+ |
+LL | fn foo(self) {}
+ | ^^^^^^^^^^^^
+note: candidate #2 is defined in the trait `F`
+ --> $DIR/issue-37767.rs:30:5
+ |
+LL | fn foo(self) {}
+ | ^^^^^^^^^^^^
+help: disambiguate the associated function for candidate #1
+ |
+LL | E::foo(a)
+ | ~~~~~~~~~
+help: disambiguate the associated function for candidate #2
+ |
+LL | F::foo(a)
+ | ~~~~~~~~~
+
+error: aborting due to 3 previous errors
+
+For more information about this error, try `rustc --explain E0034`.