We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b4a81a + 7feac15 commit cdd69d6Copy full SHA for cdd69d6
tests/rustdoc-json/attrs/automatically_derived.rs
@@ -0,0 +1,13 @@
1
+#[derive(Default)]
2
+pub struct Derive;
3
+
4
+pub struct Manual;
5
6
+impl Default for Manual {
7
+ fn default() -> Self {
8
+ Self
9
+ }
10
+}
11
12
+//@ is '$.index[?(@.inner.impl.for.resolved_path.path == "Derive" && @.inner.impl.trait.path == "Default")].attrs' '["#[automatically_derived]"]'
13
+//@ is '$.index[?(@.inner.impl.for.resolved_path.path == "Manual" && @.inner.impl.trait.path == "Default")].attrs' '[]'
0 commit comments