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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
235 B
Rust
Raw Normal View History

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