]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/defaults/default-annotation.rs
Rollup merge of #90087 - calebcartwright:rustfmt-subtree, r=calebcartwright
[rust.git] / src / test / ui / const-generics / defaults / default-annotation.rs
1 // run-pass
2 #![feature(staged_api)]
3 #![feature(const_generics_defaults)]
4 #![allow(incomplete_features)]
5 // FIXME(const_generics_defaults): It seems like we aren't testing the right thing here,
6 // I would assume that we want the attributes to apply to the const parameter defaults
7 // themselves.
8 #![stable(feature = "const_default_test", since="none")]
9
10 #[unstable(feature = "const_default_stable", issue="none")]
11 pub struct ConstDefaultUnstable<const N: usize = 3>;
12
13 #[stable(feature = "const_default_unstable", since="none")]
14 pub struct ConstDefaultStable<const N: usize = {
15     3
16 }>;
17
18 fn main() {}