]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-js/impl-trait.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / rustdoc-js / impl-trait.rs
1 pub trait Aaaaaaa {}
2
3 impl Aaaaaaa for () {}
4
5 pub fn bbbbbbb() -> impl Aaaaaaa {
6     ()
7 }
8
9 pub struct Ccccccc {}
10
11 impl Ccccccc {
12     pub fn ddddddd(&self) -> impl Aaaaaaa {
13         ()
14     }
15     pub fn eeeeeee(&self, _x: impl Aaaaaaa) -> i32 {
16         0
17     }
18     pub fn fffffff(&self, x: impl Aaaaaaa) -> impl Aaaaaaa {
19         x
20     }
21 }