rustdoc: change error message for invalid #[doc(tuple_variadic)]
Add test case.
This commit is contained in:
parent
36fb094d25
commit
95ae4c9295
3 changed files with 24 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue