]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc-js/raw-pointer.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / 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 }