2023-12-09 15:53:41 -05:00
|
|
|
// This is a regression test for https://github.com/rust-lang/rust/issues/118047
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ build-pass
|
|
|
|
//@ compile-flags: -Zmir-opt-level=0 -Zmir-enable-passes=+DataflowConstProp
|
2023-12-09 15:53:41 -05:00
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
pub struct State {
|
|
|
|
inner: bool
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn make() -> State {
|
|
|
|
State {
|
|
|
|
inner: true
|
|
|
|
}
|
|
|
|
}
|