aboutsummaryrefslogtreecommitdiffstats
path: root/lua/tests/indent/rust/trait.rs
diff options
context:
space:
mode:
authorJędrzej Boczar <yendreij@gmail.com>2021-04-18 22:38:25 +0200
committerKiyan <yazdani.kiyan@protonmail.com>2021-04-23 21:21:38 +0200
commit1d7e5144ab0feb24629624d593b817a51b5aab8d (patch)
treed4eea1129213572e1c9fcc0c75849a46058da193 /lua/tests/indent/rust/trait.rs
parenttests/indent: add `normal o` tests for Python (diff)
downloadnvim-treesitter-1d7e5144ab0feb24629624d593b817a51b5aab8d.tar
nvim-treesitter-1d7e5144ab0feb24629624d593b817a51b5aab8d.tar.gz
nvim-treesitter-1d7e5144ab0feb24629624d593b817a51b5aab8d.tar.bz2
nvim-treesitter-1d7e5144ab0feb24629624d593b817a51b5aab8d.tar.lz
nvim-treesitter-1d7e5144ab0feb24629624d593b817a51b5aab8d.tar.xz
nvim-treesitter-1d7e5144ab0feb24629624d593b817a51b5aab8d.tar.zst
nvim-treesitter-1d7e5144ab0feb24629624d593b817a51b5aab8d.zip
tests/indent: improve Rust tests
Diffstat (limited to 'lua/tests/indent/rust/trait.rs')
-rw-r--r--lua/tests/indent/rust/trait.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/tests/indent/rust/trait.rs b/lua/tests/indent/rust/trait.rs
new file mode 100644
index 000000000..fb5fc7ea8
--- /dev/null
+++ b/lua/tests/indent/rust/trait.rs
@@ -0,0 +1,11 @@
+struct Foo;
+
+trait Bar {
+ fn bar();
+}
+
+impl Bar for Foo {
+ fn bar() {
+
+ }
+}