FileCheck issue_78442
This commit is contained in:
parent
bb695977de
commit
5cf65eb16a
@ -1,4 +1,3 @@
|
|||||||
// skip-filecheck
|
|
||||||
// compile-flags: -Z mir-opt-level=3 -Z inline-mir
|
// compile-flags: -Z mir-opt-level=3 -Z inline-mir
|
||||||
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
@ -9,6 +8,11 @@ pub fn bar<P>(
|
|||||||
// Error won't happen if "bar" is not generic
|
// Error won't happen if "bar" is not generic
|
||||||
_baz: P,
|
_baz: P,
|
||||||
) {
|
) {
|
||||||
|
// CHECK-LABEL: fn bar(
|
||||||
|
// CHECK: let mut {{.*}}: &fn() {foo};
|
||||||
|
// CHECK: let {{.*}}: fn() {foo};
|
||||||
|
// CHECK: (inlined hide_foo)
|
||||||
|
// CHECK-NOT: inlined
|
||||||
hide_foo()();
|
hide_foo()();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user