2021-03-18 01:38:11 -05:00
|
|
|
//@ run-pass
|
|
|
|
#![feature(staged_api)]
|
|
|
|
#![allow(incomplete_features)]
|
2021-10-20 17:37:36 -05:00
|
|
|
// FIXME(const_generics_defaults): It seems like we aren't testing the right thing here,
|
2021-08-27 11:04:57 -05:00
|
|
|
// I would assume that we want the attributes to apply to the const parameter defaults
|
|
|
|
// themselves.
|
2023-10-16 15:11:26 -05:00
|
|
|
#![stable(feature = "const_default_test", since = "3.3.3")]
|
2021-03-18 01:38:11 -05:00
|
|
|
|
2023-10-16 15:11:26 -05:00
|
|
|
#[unstable(feature = "const_default_stable", issue = "none")]
|
2021-03-18 01:38:11 -05:00
|
|
|
pub struct ConstDefaultUnstable<const N: usize = 3>;
|
|
|
|
|
2023-10-16 15:11:26 -05:00
|
|
|
#[stable(feature = "const_default_unstable", since = "3.3.3")]
|
2021-03-18 01:38:11 -05:00
|
|
|
pub struct ConstDefaultStable<const N: usize = {
|
2021-03-29 03:32:27 -05:00
|
|
|
3
|
2021-03-18 01:38:11 -05:00
|
|
|
}>;
|
|
|
|
|
|
|
|
fn main() {}
|