diff options
| author | Michael Howell <michael@notriddle.com> | 2024-04-18 18:58:52 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2024-04-19 14:31:21 -0700 |
| commit | 8b47f6781792606fcf49724155bce4228e87be36 (patch) | |
| tree | c4d79ecfd902a0df8054d6728af79afb8bf8b09a /tests/rustdoc-js/reference.rs | |
| parent | f9b16149208c8a8a349c32813312716f6603eb6f (diff) | |
| download | rust-8b47f6781792606fcf49724155bce4228e87be36.tar.gz rust-8b47f6781792606fcf49724155bce4228e87be36.zip | |
rustdoc-search: add index of borrow references
Diffstat (limited to 'tests/rustdoc-js/reference.rs')
| -rw-r--r-- | tests/rustdoc-js/reference.rs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/rustdoc-js/reference.rs b/tests/rustdoc-js/reference.rs new file mode 100644 index 00000000000..3a0a23c65d5 --- /dev/null +++ b/tests/rustdoc-js/reference.rs @@ -0,0 +1,32 @@ +#![feature(extern_types)] + +pub fn pinky(input: &usize, manage: usize) { + unimplemented!() +} + +pub struct Thumb; + +impl Thumb { + pub fn up(&self, finger: Thumb) { unimplemented!() } +} + +pub enum Index {} + +impl Index { + pub fn point(self, data: &Index) { unimplemented!() } +} + +pub union Ring { + magic: u32, + marriage: f32, +} + +impl Ring { + pub fn wear(&mut self, extra: &Ring) { unimplemented!() } +} + +extern "C" { + pub type Middle; +} + +pub fn show(left: &&mut Middle, right: &mut &Middle) { unimplemented!() } |
