about summary refs log tree commit diff
path: root/tests/rustdoc/const-generics/const-generics-docs.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-04-24 17:42:39 +0000
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-09-06 11:16:05 +0200
commit1abbd4cd4fa1c18c706505b71ed49cf0fda0ebee (patch)
tree2adf3665a998c255ff6fc11a8811f606e3f53637 /tests/rustdoc/const-generics/const-generics-docs.rs
parent3767e315ac55a64c5b430ef367ee7d8f6e0dc145 (diff)
downloadrust-1abbd4cd4fa1c18c706505b71ed49cf0fda0ebee.tar.gz
rust-1abbd4cd4fa1c18c706505b71ed49cf0fda0ebee.zip
Render missing fields in tuple struct/enum as /* private fields */
Diffstat (limited to 'tests/rustdoc/const-generics/const-generics-docs.rs')
-rw-r--r--tests/rustdoc/const-generics/const-generics-docs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc/const-generics/const-generics-docs.rs b/tests/rustdoc/const-generics/const-generics-docs.rs
index 828486a41d4..70a9518f05b 100644
--- a/tests/rustdoc/const-generics/const-generics-docs.rs
+++ b/tests/rustdoc/const-generics/const-generics-docs.rs
@@ -33,7 +33,7 @@ impl<const N: usize> Trait<N> for [u8; N] {}
 // @has foo/struct.Foo.html '//pre[@class="rust item-decl"]' \
 //      'pub struct Foo<const N: usize> where u8: Trait<N>'
 pub struct Foo<const N: usize> where u8: Trait<N>;
-// @has foo/struct.Bar.html '//pre[@class="rust item-decl"]' 'pub struct Bar<T, const N: usize>(_)'
+// @has foo/struct.Bar.html '//pre[@class="rust item-decl"]' 'pub struct Bar<T, const N: usize>('
 pub struct Bar<T, const N: usize>([T; N]);
 
 // @has foo/struct.Foo.html '//*[@id="impl-Foo%3CM%3E"]/h3[@class="code-header"]' 'impl<const M: usize> Foo<M>where u8: Trait<M>'
@@ -92,7 +92,7 @@ macro_rules! define_me {
 }
 
 // @has foo/struct.Foz.html '//pre[@class="rust item-decl"]' \
-//      'pub struct Foz<const N: usize>(_);'
+//      'pub struct Foz<const N: usize>(/* private fields */);'
 define_me!(Foz<N>);
 
 trait Q {