]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/foreigntype.rs
Rollup merge of #107169 - albertlarsan68:lock-in-pre-push, r=Mark-Simulacrum
[rust.git] / tests / 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="fn"]' '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'