rust/tests/rustdoc-json/impls/blanket_with_local.rs

19 lines
437 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-08-17 05:55:09 -05:00
// @has "$.index[*][?(@.name=='Load')]"
pub trait Load {
2022-08-17 05:55:09 -05:00
// @has "$.index[*][?(@.name=='load')]"
fn load() {}
2022-08-17 05:55:09 -05:00
// @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) {}
}
2022-08-17 05:55:09 -05:00
// @has "$.index[*][?(@.name=='Wrapper')]"
pub struct Wrapper {}