]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-json/impls/blanket_with_local.rs
Rollup merge of #107687 - cjgillot:sroa-2, r=oli-obk
[rust.git] / tests / rustdoc-json / impls / blanket_with_local.rs
1 // Test for the ICE in rust/83718
2 // A blanket impl plus a local type together shouldn't result in mismatched ID issues
3
4 // @has "$.index[*][?(@.name=='Load')]"
5 pub trait Load {
6     // @has "$.index[*][?(@.name=='load')]"
7     fn load() {}
8     // @has "$.index[*][?(@.name=='write')]"
9     fn write(self) {}
10 }
11
12 impl<P> Load for P {
13     fn load() {}
14     fn write(self) {}
15 }
16
17 // @has "$.index[*][?(@.name=='Wrapper')]"
18 pub struct Wrapper {}