about summary refs log tree commit diff
path: root/tests/rustdoc/extern/auxiliary/rustdoc-extern-default-method.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-05 17:30:40 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-05 17:49:12 +0200
commite14e19a67dcdd7437b29bd37b4aa1fde3e5fecee (patch)
tree72413ee76e1e858195fc1f623c0bc4e6da36f5fe /tests/rustdoc/extern/auxiliary/rustdoc-extern-default-method.rs
parente245c3bc6bb7d278106649be9a03fc9b374e196b (diff)
downloadrust-e14e19a67dcdd7437b29bd37b4aa1fde3e5fecee.tar.gz
rust-e14e19a67dcdd7437b29bd37b4aa1fde3e5fecee.zip
Created `tests/rustdoc/extern` subfolder to limit number of files at the top level
Diffstat (limited to 'tests/rustdoc/extern/auxiliary/rustdoc-extern-default-method.rs')
-rw-r--r--tests/rustdoc/extern/auxiliary/rustdoc-extern-default-method.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rustdoc/extern/auxiliary/rustdoc-extern-default-method.rs b/tests/rustdoc/extern/auxiliary/rustdoc-extern-default-method.rs
new file mode 100644
index 00000000000..12934238a8e
--- /dev/null
+++ b/tests/rustdoc/extern/auxiliary/rustdoc-extern-default-method.rs
@@ -0,0 +1,11 @@
+#![crate_type="lib"]
+
+pub trait Trait {
+    fn provided(&self) {}
+}
+
+pub struct Struct;
+
+impl Trait for Struct {
+    fn provided(&self) {}
+}