Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
24
tests/rustdoc-js/raw-pointer.rs
Normal file
24
tests/rustdoc-js/raw-pointer.rs
Normal file
|
@ -0,0 +1,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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue