We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dff51f commit 3bd7de9Copy full SHA for 3bd7de9
src/test/rustdoc/const-generics/const-generic-defaults.rs
@@ -0,0 +1,6 @@
1
+#![crate_name = "foo"]
2
+#![feature(const_generics_defaults)]
3
+
4
+// @has foo/struct.Foo.html '//pre[@class="rust struct"]' \
5
+// 'pub struct Foo<const M: usize = 10_usize, const N: usize = M, T = i32>(_);'
6
+pub struct Foo<const M: usize = 10, const N: usize = M, T = i32>(T);
0 commit comments