2022-01-13 12:38:08 -05:00
|
|
|
// Test for the ICE in rust/83718
|
|
|
|
// A blanket impl plus a local type together shouldn't result in mismatched ID issues
|
|
|
|
|
2025-03-20 23:01:32 +00:00
|
|
|
//@ has "$.index[?(@.name=='Load')]"
|
2022-01-13 12:38:08 -05:00
|
|
|
pub trait Load {
|
2025-03-20 23:01:32 +00:00
|
|
|
//@ has "$.index[?(@.name=='load')]"
|
2022-01-13 12:38:08 -05:00
|
|
|
fn load() {}
|
2025-03-20 23:01:32 +00:00
|
|
|
//@ has "$.index[?(@.name=='write')]"
|
2022-01-21 13:19:18 -05:00
|
|
|
fn write(self) {}
|
2022-01-13 12:38:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
impl<P> Load for P {
|
|
|
|
fn load() {}
|
2022-01-21 13:19:18 -05:00
|
|
|
fn write(self) {}
|
2022-01-13 12:38:08 -05:00
|
|
|
}
|
|
|
|
|
2025-03-20 23:01:32 +00:00
|
|
|
//@ has "$.index[?(@.name=='Wrapper')]"
|
2022-01-13 12:38:08 -05:00
|
|
|
pub struct Wrapper {}
|