We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b45675 commit 870c9e7Copy full SHA for 870c9e7
tests/rustdoc-json/traits/automatically_derived_attr.rs
@@ -0,0 +1,14 @@
1
+#[derive(Default)]
2
+pub struct Derived;
3
+
4
+// @is '$.index[*][?(@.inner.for.inner.name == "Derived")].attrs' '["#[automatically_derived]"]'
5
6
+pub struct ManualImpl;
7
8
+// @is '$.index[*][?(@.docs == "The manual impl of default")].attrs' []
9
+/// The manual impl of default
10
+impl Default for ManualImpl {
11
+ fn default() -> Self {
12
+ Self
13
+ }
14
+}
0 commit comments