mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 20:47:36 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
18 lines
226 B
Rust
18 lines
226 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
#![allow(non_upper_case_globals)]
|
|
|
|
enum Foo {
|
|
IntVal(i32),
|
|
Int64Val(i64)
|
|
}
|
|
|
|
struct Bar {
|
|
i: i32,
|
|
v: Foo
|
|
}
|
|
|
|
static bar: Bar = Bar { i: 0, v: Foo::IntVal(0) };
|
|
|
|
pub fn main() {}
|