Skip to content

Commit 054e3bf

Browse files
Add test for fn-like search
1 parent d1e62d6 commit 054e3bf

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// exact-check
2+
const QUERY = 'u32 -> u32';
3+
4+
const EXPECTED = {
5+
'others': [
6+
],
7+
'returned': [
8+
{ 'path': 'primitive_fn_like_search', 'name': 'foo' },
9+
],
10+
'in_args': [
11+
{ 'path': 'primitive_fn_like_search', 'name': 'foo' },
12+
],
13+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pub struct Foo;
2+
3+
pub trait Bar {}
4+
5+
pub fn foo<T: Bar, D: ::std::fmt::Debug>(a: Foo, b: u32, c: T, d: D) -> u32 {0}

0 commit comments

Comments
 (0)