]> git.lizzy.rs Git - rust.git/blob - tests/ui/stability-attribute/stability-attribute-issue-43027.rs
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / 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 }