summaryrefslogtreecommitdiff
path: root/tests/ui/resolve/issue-111312.stderr
diff options
context:
space:
mode:
authormu001999 <mu001999@outlook.com>2023-05-17 16:59:39 +0800
committermu001999 <mu001999@outlook.com>2023-05-17 16:59:39 +0800
commitdb645124221a1e2d3e70b14fbedef019e036c066 (patch)
tree779d30fa51059b0064d96fc2a0d03effeb2b1080 /tests/ui/resolve/issue-111312.stderr
parentbc888958c9e1fdde09791f15d3421bdc3b6d7d29 (diff)
downloadrust-db645124221a1e2d3e70b14fbedef019e036c066.tar.gz
Emits E0599 when meeting MyTrait::missing_method
Diffstat (limited to 'tests/ui/resolve/issue-111312.stderr')
-rw-r--r--tests/ui/resolve/issue-111312.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-111312.stderr b/tests/ui/resolve/issue-111312.stderr
new file mode 100644
index 00000000000..4c864029c98
--- /dev/null
+++ b/tests/ui/resolve/issue-111312.stderr
@@ -0,0 +1,15 @@
+error[E0599]: no function or associated item named `has` found for trait `HasNot`
+ --> $DIR/issue-111312.rs:10:13
+ |
+LL | HasNot::has();
+ | ^^^ function or associated item not found in `HasNot`
+ |
+note: `Has` defines an item `has`
+ --> $DIR/issue-111312.rs:3:1
+ |
+LL | trait Has {
+ | ^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0599`.