diff options
Diffstat (limited to 'rust-mode-tests.el')
| -rw-r--r-- | rust-mode-tests.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rust-mode-tests.el b/rust-mode-tests.el index 64d65c4..9d87960 100644 --- a/rust-mode-tests.el +++ b/rust-mode-tests.el @@ -3061,6 +3061,20 @@ extern \"rust-intrinsic\" fn five() { "four" "five")))) +(ert-deftest rust-test-imenu-impl-with-lifetime () + (test-imenu + " +impl<'a> One<'a> { + fn one() {} +} + +impl Two<'a> { + fn two() {} +} +" + '(("Impl" "One" "Two") + ("Fn" "one" "two")))) + (when (executable-find rust-cargo-bin) (ert-deftest rust-test-project-located () (lexical-let* ((test-dir (expand-file-name "test-project" default-directory)) |
