diff options
| author | binarycat <binarycat@envs.net> | 2025-08-21 17:43:04 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-08-21 17:50:12 -0500 |
| commit | 3501e4f3f2a0501d353fb97ca823443203095682 (patch) | |
| tree | 347889549f559abeb91588898742af202cadea0b /tests/rustdoc-js/pointer.rs | |
| parent | eeaad503df184e75b870cfb4492388711d7a6947 (diff) | |
| download | rust-3501e4f3f2a0501d353fb97ca823443203095682.tar.gz rust-3501e4f3f2a0501d353fb97ca823443203095682.zip | |
rustdoc: add tests for raw pointers in type-based search
Diffstat (limited to 'tests/rustdoc-js/pointer.rs')
| -rw-r--r-- | tests/rustdoc-js/pointer.rs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/rustdoc-js/pointer.rs b/tests/rustdoc-js/pointer.rs new file mode 100644 index 00000000000..8375a174303 --- /dev/null +++ b/tests/rustdoc-js/pointer.rs @@ -0,0 +1,40 @@ +#![feature(extern_types)] + +pub fn pinky(input: *const usize, manage: usize) { + unimplemented!() +} + +pub struct Thumb; + +impl Thumb { + pub fn up(this: *const Self, finger: Thumb) { + unimplemented!() + } +} + +pub enum Index {} + +impl Index { + pub fn point(self, data: *const Index) { + unimplemented!() + } +} + +pub union Ring { + magic: u32, + marriage: f32, +} + +impl Ring { + pub fn wear(this: *mut Self, extra: *const Ring) { + unimplemented!() + } +} + +extern "C" { + pub type Middle; +} + +pub fn show(left: *const *mut Middle, right: *mut *const Middle) { + unimplemented!() +} |
