mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
18 lines
572 B
Rust
18 lines
572 B
Rust
//@ run-pass
|
|
#![feature(staged_api)]
|
|
#![allow(incomplete_features)]
|
|
// FIXME(const_generics_defaults): It seems like we aren't testing the right thing here,
|
|
// I would assume that we want the attributes to apply to the const parameter defaults
|
|
// themselves.
|
|
#![stable(feature = "const_default_test", since = "3.3.3")]
|
|
|
|
#[unstable(feature = "const_default_stable", issue = "none")]
|
|
pub struct ConstDefaultUnstable<const N: usize = 3>;
|
|
|
|
#[stable(feature = "const_default_unstable", since = "3.3.3")]
|
|
pub struct ConstDefaultStable<const N: usize = {
|
|
3
|
|
}>;
|
|
|
|
fn main() {}
|