summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-87635.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-87635.rs')
-rw-r--r--tests/ui/parser/issues/issue-87635.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-87635.rs b/tests/ui/parser/issues/issue-87635.rs
new file mode 100644
index 000000000..f70a87fb0
--- /dev/null
+++ b/tests/ui/parser/issues/issue-87635.rs
@@ -0,0 +1,9 @@
+struct Foo {}
+
+impl Foo {
+ pub fn bar()
+ //~^ ERROR: associated function in `impl` without body
+}
+//~^ERROR expected one of `->`, `where`, or `{`, found `}`
+
+fn main() {}