summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/const-generics/const-generic-defaults.rs
blob: acc3b853e5679c577696ffb87ff3578e00791293 (plain)
1
2
3
4
5
#![crate_name = "foo"]

// @has foo/struct.Foo.html '//div[@class="item-decl"]/pre[@class="rust"]' \
//      'pub struct Foo<const M: usize = 10, const N: usize = M, T = i32>(_);'
pub struct Foo<const M: usize = 10, const N: usize = M, T = i32>(T);