diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-04-16 15:19:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-16 15:19:12 +0200 |
| commit | e7c13c3357343a39351080098d47a039f0c0e7a6 (patch) | |
| tree | 9601b0b3542192c200a90da2e4d79c13e8c185df /tests/rustdoc-ui/auxiliary | |
| parent | ea7eb713d90d667c9f1c99afc7d3dff2ecacee65 (diff) | |
| parent | ecbe327e71f71eeb069fba8919391471f18a573e (diff) | |
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-ui/auxiliary')
| -rw-r--r-- | tests/rustdoc-ui/auxiliary/issue-73061.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/auxiliary/issue-73061.rs b/tests/rustdoc-ui/auxiliary/issue-73061.rs new file mode 100644 index 00000000000..9a2e4aaf75e --- /dev/null +++ b/tests/rustdoc-ui/auxiliary/issue-73061.rs @@ -0,0 +1,17 @@ +//@edition:2018 + +#![feature(impl_trait_in_assoc_type)] + +pub trait Foo { + type X: std::future::Future<Output = ()>; + fn x(&self) -> Self::X; +} + +pub struct F; + +impl Foo for F { + type X = impl std::future::Future<Output = ()>; + fn x(&self) -> Self::X { + async {} + } +} |
