diff options
Diffstat (limited to 'rust-mode-tests.el')
| -rw-r--r-- | rust-mode-tests.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/rust-mode-tests.el b/rust-mode-tests.el index e41245f..8375d35 100644 --- a/rust-mode-tests.el +++ b/rust-mode-tests.el @@ -631,6 +631,25 @@ fn args_on_the_next_line( // with a comment } ")) +(ert-deftest indent-closing-square-bracket () + (test-indent + "fn blergh() { + let list = vec![ + 1, + 2, + 3, + ]; +}")) + +(ert-deftest indent-closing-paren () + (test-indent + "fn blergh() { + call( + a, + function + ); +}")) + (ert-deftest indent-nested-fns () (test-indent " |
