summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/raw-pointer.rs
blob: b8ace2e0b7d77945cdc5e5731df5562c35553549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use std::ptr;

pub struct Aaaaaaa {}

pub fn bbbbbbb() -> *const Aaaaaaa {
    ptr::null()
}

pub struct Ccccccc {}

impl Ccccccc {
    pub fn ddddddd(&self) -> *const Aaaaaaa {
        ptr::null()
    }
    pub fn eeeeeee(&self, _x: *const Aaaaaaa) -> i32 {
        0
    }
    pub fn fffffff(&self, x: *const Aaaaaaa) -> *const Aaaaaaa {
        x
    }
    pub fn ggggggg(&self, x: *mut Aaaaaaa) -> *mut Aaaaaaa {
        x
    }
}