Skip to content

Commit a370664

Browse files
authored
Merge pull request #14 from dtolnay/namedvariadic
Support named variadic function arguments
2 parents e5622b1 + 6c2cb76 commit a370664

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ty.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,11 @@ impl Printer {
163163
}
164164

165165
fn type_verbatim(&mut self, ty: &TokenStream) {
166-
unimplemented!("Type::Verbatim `{}`", ty);
166+
if ty.to_string() == "..." {
167+
self.word("...");
168+
} else {
169+
unimplemented!("Type::Verbatim `{}`", ty);
170+
}
167171
}
168172

169173
pub fn return_type(&mut self, ty: &ReturnType) {

0 commit comments

Comments
 (0)