We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c0846a commit e6e16ccCopy full SHA for e6e16cc
rust-mode-tests.el
@@ -526,6 +526,18 @@ fn foo() {
526
"
527
))
528
529
+;; Closing braces in single char literals and strings should not confuse the indentation
530
+(ert-deftest indent-closing-braces-in-char-literals ()
531
+ (test-indent
532
+ "
533
+fn foo() {
534
+ { bar('}'); }
535
+ { bar(']'); }
536
+ { bar(')'); }
537
+}
538
+"
539
+ ))
540
+
541
(setq rust-test-motion-string
542
543
fn fn1(arg: int) -> bool {
0 commit comments