mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
25 lines
435 B
Rust
25 lines
435 B
Rust
|
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
|
||
|
}
|
||
|
}
|