rust/tests/rustdoc-js/raw-pointer.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
435 B
Rust
Raw Normal View History

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
}
}