From 35830fe218f245ef4a82199b8ee371fa89a52721 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Wed, 3 Jan 2024 15:30:09 -0700 Subject: rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 5) --- tests/rustdoc/inline_cross/auxiliary/issue-46727.rs | 7 +++++++ tests/rustdoc/inline_cross/const-eval-46727.rs | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/rustdoc/inline_cross/auxiliary/issue-46727.rs create mode 100644 tests/rustdoc/inline_cross/const-eval-46727.rs (limited to 'tests/rustdoc/inline_cross') diff --git a/tests/rustdoc/inline_cross/auxiliary/issue-46727.rs b/tests/rustdoc/inline_cross/auxiliary/issue-46727.rs new file mode 100644 index 00000000000..30dccfa77b5 --- /dev/null +++ b/tests/rustdoc/inline_cross/auxiliary/issue-46727.rs @@ -0,0 +1,7 @@ +// compile-flags: -Cmetadata=aux + +pub trait Foo {} + +pub struct Bar { x: T } + +impl Foo for Bar<[T; 1 + 1 + 1]> {} diff --git a/tests/rustdoc/inline_cross/const-eval-46727.rs b/tests/rustdoc/inline_cross/const-eval-46727.rs new file mode 100644 index 00000000000..d0ce9c34f51 --- /dev/null +++ b/tests/rustdoc/inline_cross/const-eval-46727.rs @@ -0,0 +1,10 @@ +// https://github.com/rust-lang/rust/issues/46727 +#![crate_name="foo"] + +// aux-build:issue-46727.rs + +extern crate issue_46727; + +// @has foo/trait.Foo.html +// @has - '//h3[@class="code-header"]' 'impl Foo for Bar<[T; 3]>' +pub use issue_46727::{Foo, Bar}; -- cgit 1.4.1-3-g733a5