]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-json/impls/blanket_with_local.rs
Rollup merge of #100514 - compiler-errors:issue-100191, r=spastorino
[rust.git] / src / test / 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 blanket_with_local.json "$.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 {}