mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
18 lines
283 B
Rust
18 lines
283 B
Rust
// unit-test: Deaggregator
|
|
|
|
struct Baz {
|
|
x: usize,
|
|
y: f32,
|
|
z: bool,
|
|
}
|
|
|
|
// EMIT_MIR deaggregator_test.bar.Deaggregator.diff
|
|
fn bar(a: usize) -> Baz {
|
|
Baz { x: a, y: 0.0, z: false }
|
|
}
|
|
|
|
fn main() {
|
|
// Make sure the function actually gets instantiated.
|
|
bar(0);
|
|
}
|