That tells you exactly the issue, you are calling rule/1, which is a macro that returns a def AST, and you cannot call def at that location, you can only call it from inside a module. ![]()
That tells you exactly the issue, you are calling rule/1, which is a macro that returns a def AST, and you cannot call def at that location, you can only call it from inside a module. ![]()