-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
A-stabilityArea: `#[stable]`, `#[unstable]` etc.Area: `#[stable]`, `#[unstable]` etc.
Description
#![feature(staged_api)]
#![staged_api]
#[stable(feature="test", since="1.0.0")]
pub const C: u8 = {pub struct S; 1 };
#[stable(feature="test", since="1.0.0")]
pub type T = [u8; { pub struct S; 1 }];
fn main() {}
<anon>:8:20: 8:33 error: This node does not have a stability attribute
<anon>:8 pub const C: u8 = {pub struct S; 1 };
^~~~~~~~~~~~~
<anon>:10:21: 10:34 error: This node does not have a stability attribute
<anon>:10 pub type T = [u8; { pub struct S; 1 }];
^~~~~~~~~~~~~
Noticed while reading stability.rs
This is more amusing, than problematic, but I'll fix it anyway.
Metadata
Metadata
Assignees
Labels
A-stabilityArea: `#[stable]`, `#[unstable]` etc.Area: `#[stable]`, `#[unstable]` etc.