aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/rust/func.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/rust/func.rs')
-rw-r--r--tests/indent/rust/func.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/indent/rust/func.rs b/tests/indent/rust/func.rs
new file mode 100644
index 000000000..4c9d40b26
--- /dev/null
+++ b/tests/indent/rust/func.rs
@@ -0,0 +1,10 @@
+fn foo() -> i32 {
+ 1
+}
+
+fn foo(
+ x: i32,
+ y: i32
+) -> i32 {
+ x + y
+}