Skip to content

Commit 61e801d

Browse files
committed
Add FileCheck for build_correct_coerce
1 parent 480d852 commit 61e801d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//@ skip-filecheck
2-
31
// Validate that we record the target for the `as` coercion as `for<'a> fn(&'a (), &'a ())`,
42
// and not `for<'a, 'b>(&'a (), &'b ())`. We previously did the latter due to a bug in
53
// the code that records adjustments in HIR typeck.
@@ -8,5 +6,8 @@ fn foo<'a, 'b>(_: &'a (), _: &'b ()) {}
86

97
// EMIT_MIR build_correct_coerce.main.built.after.mir
108
fn main() {
9+
// CHECK-LABEL: fn main(
10+
// CHECK: let _1: for<'a> fn(&'a (), &'a ());
11+
// CHECK: _1 = foo as for<'a> fn(&'a (), &'a ())
1112
let x = foo as for<'a> fn(&'a (), &'a ());
1213
}

0 commit comments

Comments
 (0)