2022-06-14 21:17:20 +00:00
|
|
|
// compile-flags: --crate-type lib --edition 2018
|
|
|
|
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
#![feature(rustdoc_internals)]
|
|
|
|
|
|
|
|
pub trait Foo {}
|
|
|
|
|
|
|
|
// @has foo/trait.Foo.html
|
2023-02-04 00:36:27 +00:00
|
|
|
// @has - '//section[@id="impl-Foo-for-(T,)"]/h3' 'impl<T> Foo for (T₁, T₂, …, Tₙ)'
|
2022-06-16 16:50:57 +00:00
|
|
|
#[doc(fake_variadic)]
|
2022-06-14 21:17:20 +00:00
|
|
|
impl<T> Foo for (T,) {}
|
|
|
|
|
|
|
|
pub trait Bar {}
|
|
|
|
|
|
|
|
// @has foo/trait.Bar.html
|
2023-02-04 00:36:27 +00:00
|
|
|
// @has - '//section[@id="impl-Bar-for-(U,)"]/h3' 'impl<U: Foo> Bar for (U₁, U₂, …, Uₙ)'
|
2022-06-16 16:50:57 +00:00
|
|
|
#[doc(fake_variadic)]
|
2022-06-14 21:17:20 +00:00
|
|
|
impl<U: Foo> Bar for (U,) {}
|