1
Fork 0
This commit is contained in:
Ellen 2021-06-03 09:40:07 +01:00
parent 6dff51f37d
commit 3bd7de90df

View file

@ -0,0 +1,6 @@
#![crate_name = "foo"]
#![feature(const_generics_defaults)]
// @has foo/struct.Foo.html '//pre[@class="rust struct"]' \
// 'pub struct Foo<const M: usize = 10_usize, const N: usize = M, T = i32>(_);'
pub struct Foo<const M: usize = 10, const N: usize = M, T = i32>(T);