From 04ccdf11c0a607154aa4e49e546a2ddc82e85e0c Mon Sep 17 00:00:00 2001 From: Rune Tynan Date: Mon, 28 Dec 2020 00:39:24 -0500 Subject: [PATCH] Add display test for range args --- src/test/rustdoc/range-arg-pattern.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/test/rustdoc/range-arg-pattern.rs diff --git a/src/test/rustdoc/range-arg-pattern.rs b/src/test/rustdoc/range-arg-pattern.rs new file mode 100644 index 0000000000000..f4cc36b1055ad --- /dev/null +++ b/src/test/rustdoc/range-arg-pattern.rs @@ -0,0 +1,5 @@ +#![crate_name = "foo"] + +// @has foo/fn.f.html +// @has - '//*[@class="rust fn"]' 'pub fn f(0u8 ...255: u8)' +pub fn f(0u8...255: u8) {}