Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/tests/coercion.rs')
| -rw-r--r-- | crates/hir-ty/src/tests/coercion.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir-ty/src/tests/coercion.rs b/crates/hir-ty/src/tests/coercion.rs index 16e5ef85d0..d56b15b9b7 100644 --- a/crates/hir-ty/src/tests/coercion.rs +++ b/crates/hir-ty/src/tests/coercion.rs @@ -328,7 +328,7 @@ fn foo() { } #[test] -fn generator_yield_return_coerce() { +fn coroutine_yield_return_coerce() { check_no_mismatches( r#" fn test() { @@ -574,6 +574,7 @@ fn two_closures_lub() { r#" fn foo(c: i32) { let add = |a: i32, b: i32| a + b; + //^^^^^^^^^^^^^^^^^^^^^^ impl Fn(i32, i32) -> i32 let sub = |a, b| a - b; //^^^^^^^^^^^^ impl Fn(i32, i32) -> i32 if c > 42 { add } else { sub }; |