summaryrefslogtreecommitdiff
path: root/t/t4018/rust-fn
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-06-21 11:24:08 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-06-21 11:24:08 -0700
commita41dad4330c8291893b5c5b013457499855ec9b5 (patch)
tree21b5ec00fedc07883eee26ca823d516477e4fc10 /t/t4018/rust-fn
parentThe second batch (diff)
parentuserdiff: two simplifications of patterns for rust (diff)
downloadtgif-a41dad4330c8291893b5c5b013457499855ec9b5.tar.xz
Merge branch 'ml/userdiff-rust'
The pattern "git diff/grep" use to extract funcname and words boundary for Rust has been added. * ml/userdiff-rust: userdiff: two simplifications of patterns for rust userdiff: add built-in pattern for rust
Diffstat (limited to 't/t4018/rust-fn')
-rw-r--r--t/t4018/rust-fn5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t4018/rust-fn b/t/t4018/rust-fn
new file mode 100644
index 0000000000..cbe02155f1
--- /dev/null
+++ b/t/t4018/rust-fn
@@ -0,0 +1,5 @@
+pub(self) fn RIGHT<T>(x: &[T]) where T: Debug {
+ let _ = x;
+ // a comment
+ let a = ChangeMe;
+}