diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-01-14 20:17:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-14 20:17:23 +0100 |
| commit | 8914ca722c29f533335ec4167a8a30658ae8d914 (patch) | |
| tree | b4ea4463e05dae080fdff88f2d3eb131d767ea0b /tests/rustdoc/inline_cross | |
| parent | 273035458dc24e2babbb4708dbb870243742566e (diff) | |
| parent | a704e21c3f2ee1c9215bd088d2880c8e396eacca (diff) | |
| download | rust-8914ca722c29f533335ec4167a8a30658ae8d914.tar.gz rust-8914ca722c29f533335ec4167a8a30658ae8d914.zip | |
Rollup merge of #119561 - notriddle:master, r=fmease
rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 5) 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
Diffstat (limited to 'tests/rustdoc/inline_cross')
| -rw-r--r-- | tests/rustdoc/inline_cross/auxiliary/issue-46727.rs | 7 | ||||
| -rw-r--r-- | tests/rustdoc/inline_cross/const-eval-46727.rs | 10 |
2 files changed, 17 insertions, 0 deletions
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<T> { x: T } + +impl<T> 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<T> Foo for Bar<[T; 3]>' +pub use issue_46727::{Foo, Bar}; |
