2022-01-13 11:38:08 -06:00
|
|
|
// 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')]"
|
2022-01-13 11:38:08 -06:00
|
|
|
pub trait Load {
|
2022-01-22 18:55:25 -06:00
|
|
|
// @has - "$.index[*][?(@.name=='load')]"
|
2022-01-13 11:38:08 -06:00
|
|
|
fn load() {}
|
2022-01-22 18:55:25 -06:00
|
|
|
// @has - "$.index[*][?(@.name=='write')]"
|
2022-01-21 12:19:18 -06:00
|
|
|
fn write(self) {}
|
2022-01-13 11:38:08 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
impl<P> Load for P {
|
|
|
|
fn load() {}
|
2022-01-21 12:19:18 -06:00
|
|
|
fn write(self) {}
|
2022-01-13 11:38:08 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// @has - "$.index[*][?(@.name=='Wrapper')]"
|
|
|
|
pub struct Wrapper {}
|