summaryrefslogtreecommitdiffstats
path: root/tests/ui/hygiene/assoc_item_ctxt.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/hygiene/assoc_item_ctxt.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/hygiene/assoc_item_ctxt.stderr')
-rw-r--r--tests/ui/hygiene/assoc_item_ctxt.stderr32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/ui/hygiene/assoc_item_ctxt.stderr b/tests/ui/hygiene/assoc_item_ctxt.stderr
new file mode 100644
index 000000000..d65716ec2
--- /dev/null
+++ b/tests/ui/hygiene/assoc_item_ctxt.stderr
@@ -0,0 +1,32 @@
+error[E0407]: method `method` is not a member of trait `Tr`
+ --> $DIR/assoc_item_ctxt.rs:35:13
+ |
+LL | fn method() {}
+ | ^^^------^^^^^
+ | | |
+ | | help: there is an associated function with a similar name: `method`
+ | not a member of trait `Tr`
+...
+LL | mac_trait_impl!();
+ | ----------------- in this macro invocation
+ |
+ = note: this error originates in the macro `mac_trait_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0046]: not all trait items implemented, missing: `method`
+ --> $DIR/assoc_item_ctxt.rs:34:9
+ |
+LL | fn method();
+ | ------------ `method` from trait
+...
+LL | impl Tr for u8 {
+ | ^^^^^^^^^^^^^^ missing `method` in implementation
+...
+LL | mac_trait_impl!();
+ | ----------------- in this macro invocation
+ |
+ = note: this error originates in the macro `mac_trait_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to 2 previous errors
+
+Some errors have detailed explanations: E0046, E0407.
+For more information about an error, try `rustc --explain E0046`.