export_fn: add return_raw attribute

This commit is contained in:
J Henry Waugh
2020-08-09 14:19:39 -05:00
parent c5937f990e
commit 07a4541949
12 changed files with 227 additions and 21 deletions

View File

@@ -0,0 +1,11 @@
error: extraneous value
--> $DIR/export_fn_extra_value.rs:9:26
|
9 | #[export_fn(return_raw = "yes")]
| ^^^^^
error[E0425]: cannot find function `test_fn` in this scope
--> $DIR/export_fn_extra_value.rs:19:8
|
19 | if test_fn(n) {
| ^^^^^^^ not found in this scope