about summary refs log tree commit diff
path: root/tests/rustdoc-json/attrs/automatically_derived.rs
blob: 6c90d6386499cc13a043bb48cf1630c52cf1342d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Default)]
pub struct Derive;

pub struct Manual;

impl Default for Manual {
    fn default() -> Self {
        Self
    }
}

//@ is '$.index[?(@.inner.impl.for.resolved_path.path == "Derive" && @.inner.impl.trait.path == "Default")].attrs' '["#[automatically_derived]\n"]'
//@ is '$.index[?(@.inner.impl.for.resolved_path.path == "Manual" && @.inner.impl.trait.path == "Default")].attrs' '[]'