mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
16 lines
298 B
Rust
16 lines
298 B
Rust
// This is a regression test for https://github.com/rust-lang/rust/issues/118047
|
|
// build-pass
|
|
// compile-flags: -Zmir-opt-level=0 -Zmir-enable-passes=+DataflowConstProp
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
pub struct State {
|
|
inner: bool
|
|
}
|
|
|
|
pub fn make() -> State {
|
|
State {
|
|
inner: true
|
|
}
|
|
}
|