summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/impl-item-fn-no-body-semantic-fail.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/impl-item-fn-no-body-semantic-fail.stderr')
-rw-r--r--tests/ui/parser/impl-item-fn-no-body-semantic-fail.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/impl-item-fn-no-body-semantic-fail.stderr b/tests/ui/parser/impl-item-fn-no-body-semantic-fail.stderr
new file mode 100644
index 000000000..1acb72736
--- /dev/null
+++ b/tests/ui/parser/impl-item-fn-no-body-semantic-fail.stderr
@@ -0,0 +1,10 @@
+error: associated function in `impl` without body
+ --> $DIR/impl-item-fn-no-body-semantic-fail.rs:6:5
+ |
+LL | fn f();
+ | ^^^^^^-
+ | |
+ | help: provide a definition for the function: `{ <body> }`
+
+error: aborting due to previous error
+