summaryrefslogtreecommitdiff
path: root/t/t4018/rust-trait
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-trait
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-trait')
-rw-r--r--t/t4018/rust-trait5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t4018/rust-trait b/t/t4018/rust-trait
new file mode 100644
index 0000000000..ea397f09ed
--- /dev/null
+++ b/t/t4018/rust-trait
@@ -0,0 +1,5 @@
+unsafe trait RIGHT<T> {
+ fn len(&self) -> u32;
+ fn ChangeMe(&self, n: u32) -> T;
+ fn iter<F>(&self, f: F) where F: Fn(T);
+}