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