1
Fork 0

rustdoc: change error message for invalid #[doc(tuple_variadic)]

Add test case.
This commit is contained in:
Michael Howell 2022-06-12 13:49:42 -07:00
parent 36fb094d25
commit 95ae4c9295
3 changed files with 24 additions and 1 deletions

View file

@ -815,7 +815,7 @@ impl CheckAttrVisitor<'_> {
.sess
.struct_span_err(
meta.span(),
"`#[doc(tuple_variadic)]` can only be used on unary tuples",
"`#[doc(tuple_variadic)]` must used on the first of a set of tuple trait impls with varying arity",
)
.emit();
return false;