mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
16 lines
355 B
Rust
16 lines
355 B
Rust
// check-pass
|
|
#![feature(staged_api)]
|
|
#![stable(feature = "test", since = "0")]
|
|
|
|
#[stable(feature = "test", since = "0")]
|
|
pub struct A<T>(pub T);
|
|
|
|
#[stable(feature = "test", since = "0")]
|
|
pub struct B<T>(#[stable(feature = "test", since = "0")] pub T);
|
|
|
|
fn main() {
|
|
// Make sure the field is used to fill the stability cache
|
|
A(0).0;
|
|
B(0).0;
|
|
}
|