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

// @has foo/struct.Foo.html '//pre[@class="rust struct"]' \
//      '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);