summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-79187-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lifetimes/issue-79187-2.stderr')
-rw-r--r--tests/ui/lifetimes/issue-79187-2.stderr12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/lifetimes/issue-79187-2.stderr b/tests/ui/lifetimes/issue-79187-2.stderr
index 75fd87b3f..e8115bb6b 100644
--- a/tests/ui/lifetimes/issue-79187-2.stderr
+++ b/tests/ui/lifetimes/issue-79187-2.stderr
@@ -31,8 +31,8 @@ error[E0308]: mismatched types
LL | take_foo(|a| a);
| ^^^^^^^^^^^^^^^ one type is more general than the other
|
- = note: expected trait `for<'a> Fn<(&'a i32,)>`
- found trait `Fn<(&i32,)>`
+ = note: expected trait `for<'a> Fn(&'a i32)`
+ found trait `Fn(&i32)`
note: this closure does not fulfill the lifetime requirements
--> $DIR/issue-79187-2.rs:8:14
|
@@ -54,8 +54,8 @@ error[E0308]: mismatched types
LL | take_foo(|a: &i32| a);
| ^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
|
- = note: expected reference `&i32`
- found reference `&i32`
+ = note: expected reference `&_`
+ found reference `&_`
note: the lifetime requirement is introduced here
--> $DIR/issue-79187-2.rs:5:21
|
@@ -68,8 +68,8 @@ error[E0308]: mismatched types
LL | take_foo(|a: &i32| -> &i32 { a });
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
|
- = note: expected reference `&i32`
- found reference `&i32`
+ = note: expected reference `&_`
+ found reference `&_`
note: the lifetime requirement is introduced here
--> $DIR/issue-79187-2.rs:5:21
|