Add rhai_fn nested attribute and skip fn parameter

This commit is contained in:
J Henry Waugh
2020-08-15 21:51:14 -05:00
parent db9d8b81cf
commit bcf14025a7
15 changed files with 357 additions and 15 deletions

View File

@@ -0,0 +1,11 @@
error: expecting attribute name
--> $DIR/rhai_fn_path_attr.rs:11:11
|
11 | #[rhai_fn(rhai::name = "thing")]
| ^^^^^^^^^^
error[E0433]: failed to resolve: use of undeclared type or module `test_module`
--> $DIR/rhai_fn_path_attr.rs:22:8
|
22 | if test_module::test_fn(n) {
| ^^^^^^^^^^^ use of undeclared type or module `test_module`