summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/const-generics/const-generic-defaults.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/const-generics/const-generic-defaults.rs')
-rw-r--r--tests/rustdoc/const-generics/const-generic-defaults.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc/const-generics/const-generic-defaults.rs b/tests/rustdoc/const-generics/const-generic-defaults.rs
new file mode 100644
index 000000000..acc3b853e
--- /dev/null
+++ b/tests/rustdoc/const-generics/const-generic-defaults.rs
@@ -0,0 +1,5 @@
+#![crate_name = "foo"]
+
+// @has foo/struct.Foo.html '//div[@class="item-decl"]/pre[@class="rust"]' \
+// 'pub struct Foo<const M: usize = 10, const N: usize = M, T = i32>(_);'
+pub struct Foo<const M: usize = 10, const N: usize = M, T = i32>(T);