From cf2dff2b1e3fa55fa5415d524200070d0d7aacfe Mon Sep 17 00:00:00 2001 From: Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> Date: Thu, 5 Jan 2023 09:13:28 +0100 Subject: Move /src/test to /tests --- tests/rustdoc/src-links/compiletest-ignore-dir | 0 tests/rustdoc/src-links/fizz.rs | 1 + tests/rustdoc/src-links/mod.rs | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 tests/rustdoc/src-links/compiletest-ignore-dir create mode 100644 tests/rustdoc/src-links/fizz.rs create mode 100644 tests/rustdoc/src-links/mod.rs (limited to 'tests/rustdoc/src-links') diff --git a/tests/rustdoc/src-links/compiletest-ignore-dir b/tests/rustdoc/src-links/compiletest-ignore-dir new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/rustdoc/src-links/fizz.rs b/tests/rustdoc/src-links/fizz.rs new file mode 100644 index 00000000000..d2b76b1cec8 --- /dev/null +++ b/tests/rustdoc/src-links/fizz.rs @@ -0,0 +1 @@ +pub struct Buzz; diff --git a/tests/rustdoc/src-links/mod.rs b/tests/rustdoc/src-links/mod.rs new file mode 100644 index 00000000000..27b2396811a --- /dev/null +++ b/tests/rustdoc/src-links/mod.rs @@ -0,0 +1,19 @@ +//! Dox +pub mod bar { + + /// Dox + pub mod baz { + /// Dox + pub fn baz() { } + } + + /// Dox + pub trait Foobar { fn dummy(&self) { } } + + pub struct Foo { x: i32, y: u32 } + + pub fn prawns((a, b): (i32, u32), Foo { x, y }: Foo) { } +} + +/// Dox +pub fn modfn() { } -- cgit 1.4.1-3-g733a5