diff options
Diffstat (limited to 'tests/ui/parser/impl-item-fn-no-body-semantic-fail.rs')
-rw-r--r-- | tests/ui/parser/impl-item-fn-no-body-semantic-fail.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/impl-item-fn-no-body-semantic-fail.rs b/tests/ui/parser/impl-item-fn-no-body-semantic-fail.rs new file mode 100644 index 000000000..cb183db59 --- /dev/null +++ b/tests/ui/parser/impl-item-fn-no-body-semantic-fail.rs @@ -0,0 +1,7 @@ +fn main() {} + +struct X; + +impl X { + fn f(); //~ ERROR associated function in `impl` without body +} |