Skip to content

Commit 870c9e7

Browse files
committed
rustdoc-json: Add test for #[automatically_derived] attribute
1 parent 0b45675 commit 870c9e7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)