2020-04-23 13:15:04 -05:00
|
|
|
// check-pass
|
2017-07-16 14:11:46 -05:00
|
|
|
#![feature(staged_api)]
|
|
|
|
#![stable(feature = "test", since = "0")]
|
|
|
|
|
|
|
|
#[stable(feature = "test", since = "0")]
|
2020-04-23 13:15:04 -05:00
|
|
|
pub struct A<T>(pub T);
|
|
|
|
|
|
|
|
#[stable(feature = "test", since = "0")]
|
|
|
|
pub struct B<T>(#[stable(feature = "test", since = "0")] pub T);
|
2017-07-16 14:11:46 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// Make sure the field is used to fill the stability cache
|
2020-04-23 13:15:04 -05:00
|
|
|
A(0).0;
|
|
|
|
B(0).0;
|
2017-07-16 14:11:46 -05:00
|
|
|
}
|