From 92584c303acc417501d1faa593ff1392fd306c1d Mon Sep 17 00:00:00 2001 From: mrBliss Date: Wed, 2 Dec 2015 13:47:50 +0100 Subject: Fix the special case for the first line This special case broke indentation of `where` clauses. --- rust-mode-tests.el | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'rust-mode-tests.el') diff --git a/rust-mode-tests.el b/rust-mode-tests.el index e224e67..cc76007 100644 --- a/rust-mode-tests.el +++ b/rust-mode-tests.el @@ -603,6 +603,17 @@ impl<'a, K, Q: ?Sized, V, S> Index<&'a Q> for HashMap } ")) +(ert-deftest indent-align-where-clauses-first-line () + (test-indent + "fn foo1(a: A, b: B) -> A + where A: Clone + Default, B: Eq { + let body; + Foo { + bar: 3 + } +} +")) + (ert-deftest indent-square-bracket-alignment () (test-indent " -- cgit v1.2.3