aboutsummaryrefslogtreecommitdiff
path: root/doc/usage/invoke_expand.rs
diff options
context:
space:
mode:
Diffstat (limited to 'doc/usage/invoke_expand.rs')
-rw-r--r--doc/usage/invoke_expand.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/usage/invoke_expand.rs b/doc/usage/invoke_expand.rs
new file mode 100644
index 0000000..3274d77
--- /dev/null
+++ b/doc/usage/invoke_expand.rs
@@ -0,0 +1,6 @@
+fn compute(x: i32) -> i32 {
+ x * 2
+}
+fn example() -> i32 {
+ { { compute(5) } }
+}