We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Self
1 parent b4f77df commit dac7f20Copy full SHA for dac7f20
tests/rustdoc-js/self-is-not-generic.js
@@ -0,0 +1,22 @@
1
+// exact-check
2
+
3
+const EXPECTED = [
4
+ {
5
+ 'query': 'A -> A',
6
+ 'others': [
7
+ { 'path': 'self_is_not_generic::Thing', 'name': 'from' }
8
+ ],
9
+ },
10
11
+ 'query': 'A -> B',
12
13
+ { 'path': 'self_is_not_generic::Thing', 'name': 'try_from' }
14
15
16
17
+ 'query': 'Combine -> Combine',
18
19
+ { 'path': 'self_is_not_generic::Combine', 'name': 'combine' }
20
21
+ }
22
+];
tests/rustdoc-js/self-is-not-generic.rs
@@ -0,0 +1,11 @@
+pub trait Combine {
+ fn combine(&self, other: &Self) -> Self;
+}
+pub struct Thing;
+impl Combine for Thing {
+ fn combine(&self, other: &Self) -> Self {
+ Self
0 commit comments