rust/tests/rustdoc-json/attrs/automatically_derived.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
400 B
Rust
Raw Permalink Normal View History

#[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]"]'
//@ is '$.index[?(@.inner.impl.for.resolved_path.path == "Manual" && @.inner.impl.trait.path == "Default")].attrs' '[]'