]> git.proxmox.com Git - rustc.git/blob - src/test/ui/stability-attribute/stability-attribute-issue-43027.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / stability-attribute / stability-attribute-issue-43027.rs
1 // check-pass
2 #![feature(staged_api)]
3 #![stable(feature = "test", since = "0")]
4
5 #[stable(feature = "test", since = "0")]
6 pub struct A<T>(pub T);
7
8 #[stable(feature = "test", since = "0")]
9 pub struct B<T>(#[stable(feature = "test", since = "0")] pub T);
10
11 fn main() {
12 // Make sure the field is used to fill the stability cache
13 A(0).0;
14 B(0).0;
15 }