mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
21 lines
354 B
Rust
21 lines
354 B
Rust
//@ run-pass
|
|
//@ compile-flags: --edition 2021 -Copt-level=3 -Cdebuginfo=2 -Zmir-opt-level=3
|
|
|
|
fn main() {
|
|
TranslatorI.visit_pre();
|
|
}
|
|
|
|
impl TranslatorI {
|
|
fn visit_pre(self) {
|
|
Some(())
|
|
.map(|_| self.flags())
|
|
.unwrap_or_else(|| self.flags());
|
|
}
|
|
}
|
|
|
|
struct TranslatorI;
|
|
|
|
impl TranslatorI {
|
|
fn flags(&self) {}
|
|
}
|