]>
git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/inline/issue-78442.rs
1 // compile-flags: -Z mir-opt-level=3 -Z inline-mir
2 // ignore-wasm32-bare compiled with panic=abort by default
5 // EMIT_MIR issue_78442.bar.RevealAll.diff
6 // EMIT_MIR issue_78442.bar.Inline.diff
8 // Error won't happen if "bar" is not generic
14 fn hide_foo() -> impl Fn() {
15 // Error won't happen if "iterate" hasn't impl Trait or has generics
19 fn foo() { // Error won't happen if "foo" isn't used in "iterate" or has generics