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
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);