summary refs log tree commit diff
path: root/src/test/ui/stability-attribute/stability-attribute-issue-43027.rs
blob: 596a6eb6ed366f174849c5df5d7493272bdbe147 (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 This node does not have a stability attribute

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