diff options
| author | Felix S Klock II <pnkfelix@pnkfx.org> | 2018-12-18 12:08:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-18 12:08:31 +0100 |
| commit | d3a70256fe560bcc463ed42e4259e9fce0fdfee3 (patch) | |
| tree | d298fed06b6ac2aaf643f6ec8560106e926eec27 /rust-mode-tests.el | |
| parent | 12cb16964ce01f0e484b082ccc8a3430cc1c4158 (diff) | |
| parent | b44573743ed9146aea0470910ee073792ab46e66 (diff) | |
| download | rust-mode-d3a70256fe560bcc463ed42e4259e9fce0fdfee3.tar.gz | |
Merge pull request #292 from mookid/imenu-impl
imenu: handle lifetimes in impl blocks.
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)) |
