]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/foreigntype.rs
Rollup merge of #80053 - gilescope:include-ignore, r=m-ou-se
[rust.git] / src / test / rustdoc / foreigntype.rs
1 #![feature(extern_types)]
2
3 extern "C" {
4     // @has foreigntype/foreigntype.ExtType.html
5     pub type ExtType;
6 }
7
8 impl ExtType {
9     // @has - '//a[@class="fnname"]' 'do_something'
10     pub fn do_something(&self) {}
11 }
12
13 pub trait Trait {}
14
15 // @has foreigntype/trait.Trait.html '//a[@class="foreigntype"]' 'ExtType'
16 impl Trait for ExtType {}
17
18 // @has foreigntype/index.html '//a[@class="foreigntype"]' 'ExtType'