rust/src/test/rustdoc-json/impls/blanket_with_local.rs

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

19 lines
467 B
Rust
Raw Normal View History

// Test for the ICE in rust/83718
// A blanket impl plus a local type together shouldn't result in mismatched ID issues
2022-01-13 12:25:11 -06:00
// @has blanket_with_local.json "$.index[*][?(@.name=='Load')]"
pub trait Load {
// @has - "$.index[*][?(@.name=='load')]"
fn load() {}
// @has - "$.index[*][?(@.name=='write')]"
2022-01-21 12:19:18 -06:00
fn write(self) {}
}
impl<P> Load for P {
fn load() {}
2022-01-21 12:19:18 -06:00
fn write(self) {}
}
// @has - "$.index[*][?(@.name=='Wrapper')]"
pub struct Wrapper {}