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

6 lines
232 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"]' \
// '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);