mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
19 lines
338 B
Rust
19 lines
338 B
Rust
// Regression test for issue #113736.
|
|
//@ check-pass
|
|
|
|
#![feature(lazy_type_alias)]
|
|
//~^ WARN the feature `lazy_type_alias` is incomplete and may not be safe to use
|
|
|
|
enum Enum {
|
|
Unit,
|
|
Tuple(),
|
|
Struct {},
|
|
}
|
|
|
|
fn main() {
|
|
type Alias = Enum;
|
|
let _ = Alias::Unit;
|
|
let _ = Alias::Tuple();
|
|
let _ = Alias::Struct {};
|
|
}
|