mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
14 lines
219 B
Rust
14 lines
219 B
Rust
|
//@ check-pass
|
||
|
//@ compile-flags: -Znext-solver
|
||
|
|
||
|
#![feature(type_alias_impl_trait)]
|
||
|
|
||
|
fn main() {
|
||
|
type Tait = impl Sized;
|
||
|
struct S {
|
||
|
i: i32,
|
||
|
}
|
||
|
let x: Tait = S { i: 0 };
|
||
|
println!("{}", x.i);
|
||
|
}
|