]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/mir-opt.rs
Rollup merge of #99835 - TaKO8Ki:suggest-adding-or-removing-ref-for-binding-pattern...
[rust.git] / src / test / incremental / mir-opt.rs
1 // MIR optimizations can create expansions after the TyCtxt has been created.
2 // This test verifies that those expansions can be decoded correctly.
3
4 // revisions:rpass1 rpass2
5 // compile-flags: -Z query-dep-graph -Z mir-opt-level=3
6
7 fn main() {
8     if std::env::var("a").is_ok() {
9         println!("b");
10     }
11 }