Skip to content

Commit 87a3778

Browse files
bless tests since rebase
1 parent 23e45ae commit 87a3778

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/test/ui/generic-associated-types/bugs/issue-88382.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ error[E0631]: type mismatch in function arguments
22
--> $DIR/issue-88382.rs:27:40
33
|
44
LL | do_something(SomeImplementation(), test);
5-
| ------------ ^^^^ expected signature of `for<'a> fn(&mut <SomeImplementation as Iterable>::Iterator<'a>) -> _`
5+
| ------------ ^^^^ expected signature of `for<'r> fn(&'r mut std::iter::Empty<usize>) -> _`
66
| |
77
| required by a bound introduced by this call
88
...
99
LL | fn test<'a, I: Iterable>(_: &mut I::Iterator<'a>) {}
10-
| ------------------------------------------------- found signature of `for<'r> fn(&'r mut std::iter::Empty<usize>) -> _`
10+
| ------------------------------------------------- found signature of `for<'r, 'a> fn(&'r mut <_ as Iterable>::Iterator<'a>) -> _`
1111
|
1212
note: required by a bound in `do_something`
13-
--> $DIR/issue-88382.rs:21:56
13+
--> $DIR/issue-88382.rs:21:48
1414
|
1515
LL | fn do_something<I: Iterable>(i: I, mut f: impl for<'a> Fn(&mut I::Iterator<'a>)) {
16-
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `do_something`
16+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `do_something`
1717

1818
error: aborting due to previous error
1919

src/test/ui/generic-associated-types/issue-91139.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl<T> Foo<T> for () {
1515
= ();
1616
}
1717

18-
fn foo<T>() {
18+
fn foo<T: 'static>() {
1919
let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
2020
}
2121

0 commit comments

Comments
 (0)