rust/tests/rustdoc/const-generics/const-generic-defaults.rs

6 lines
235 B
Rust
Raw Normal View History

2021-06-03 03:40:07 -05:00
#![crate_name = "foo"]
// @has foo/struct.Foo.html '//pre[@class="rust item-decl"]' \
2022-07-18 19:46:32 -05:00
// 'pub struct Foo<const M: usize = 10, const N: usize = M, T = i32>(_);'
2021-06-03 03:40:07 -05:00
pub struct Foo<const M: usize = 10, const N: usize = M, T = i32>(T);