about summary refs log tree commit diff
path: root/tests/rustdoc/inline_cross
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-04-16 15:19:12 +0200
committerGitHub <noreply@github.com>2024-04-16 15:19:12 +0200
commite7c13c3357343a39351080098d47a039f0c0e7a6 (patch)
tree9601b0b3542192c200a90da2e4d79c13e8c185df /tests/rustdoc/inline_cross
parentea7eb713d90d667c9f1c99afc7d3dff2ecacee65 (diff)
parentecbe327e71f71eeb069fba8919391471f18a573e (diff)
downloadrust-e7c13c3357343a39351080098d47a039f0c0e7a6.tar.gz
rust-e7c13c3357343a39351080098d47a039f0c0e7a6.zip
Rollup merge of #123574 - notriddle:notriddle/issue-d, r=fmease
rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 6)

Follow up

* https://github.com/rust-lang/rust/pull/116214
* https://github.com/rust-lang/rust/pull/116432
* https://github.com/rust-lang/rust/pull/116824
* https://github.com/rust-lang/rust/pull/118105
* https://github.com/rust-lang/rust/pull/119561
Diffstat (limited to 'tests/rustdoc/inline_cross')
-rw-r--r--tests/rustdoc/inline_cross/auxiliary/issue-57180.rs16
-rw-r--r--tests/rustdoc/inline_cross/ice-import-crate-57180.rs8
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/rustdoc/inline_cross/auxiliary/issue-57180.rs b/tests/rustdoc/inline_cross/auxiliary/issue-57180.rs
new file mode 100644
index 00000000000..cd905b7a598
--- /dev/null
+++ b/tests/rustdoc/inline_cross/auxiliary/issue-57180.rs
@@ -0,0 +1,16 @@
+//@ compile-flags: -Cmetadata=aux
+
+pub trait Trait {
+}
+
+pub struct Struct<F>
+{
+    _p: ::std::marker::PhantomData<F>,
+}
+
+impl<F: Fn() -> u32>
+Trait for Struct<F>
+    where
+        F: Fn() -> u32,
+{
+}
diff --git a/tests/rustdoc/inline_cross/ice-import-crate-57180.rs b/tests/rustdoc/inline_cross/ice-import-crate-57180.rs
new file mode 100644
index 00000000000..264b53cbd9a
--- /dev/null
+++ b/tests/rustdoc/inline_cross/ice-import-crate-57180.rs
@@ -0,0 +1,8 @@
+//@ aux-build:issue-57180.rs
+// https://github.com/rust-lang/rust/issues/57180
+
+extern crate issue_57180;
+use issue_57180::Trait;
+
+fn main() {
+}