summary refs log tree commit diff
path: root/src/test/ui/stability-attribute/stability-attribute-issue-43027.rs
blob: 0b243bb52119bae080f3163343f3b4e6ff61340e (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(staged_api)]
#![stable(feature = "test", since = "0")]

#[stable(feature = "test", since = "0")]
pub struct Reverse<T>(pub T); //~ ERROR field has missing stability attribute

fn main() {
    // Make sure the field is used to fill the stability cache
    Reverse(0).0;
}