Skip to content

Commit b59c958

Browse files
Bless up
1 parent 773fa7a commit b59c958

File tree

3 files changed

+6
-48
lines changed

3 files changed

+6
-48
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ error[E0631]: type mismatch in function arguments
22
--> $DIR/issue-88382.rs:28: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:22:56
13+
--> $DIR/issue-88382.rs:22: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/higher-rank-trait-bounds/issue-60283.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// check-pass
2+
13
pub trait Trait<'a> {
24
type Item;
35
}
@@ -15,6 +17,4 @@ where
1517

1618
fn main() {
1719
foo((), drop)
18-
//~^ ERROR type mismatch in function arguments
19-
//~| ERROR size for values of type `<() as Trait<'_>>::Item` cannot be known at compilation time
2020
}

src/test/ui/higher-rank-trait-bounds/issue-60283.stderr

-42
This file was deleted.

0 commit comments

Comments
 (0)