]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-js/raw-pointer.rs
Auto merge of #107811 - matthiaskrgr:rollup-rpjzshk, r=matthiaskrgr
[rust.git] / tests / rustdoc-js / raw-pointer.rs
1 use std::ptr;
2
3 pub struct Aaaaaaa {}
4
5 pub fn bbbbbbb() -> *const Aaaaaaa {
6     ptr::null()
7 }
8
9 pub struct Ccccccc {}
10
11 impl Ccccccc {
12     pub fn ddddddd(&self) -> *const Aaaaaaa {
13         ptr::null()
14     }
15     pub fn eeeeeee(&self, _x: *const Aaaaaaa) -> i32 {
16         0
17     }
18     pub fn fffffff(&self, x: *const Aaaaaaa) -> *const Aaaaaaa {
19         x
20     }
21     pub fn ggggggg(&self, x: *mut Aaaaaaa) -> *mut Aaaaaaa {
22         x
23     }
24 }