File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,13 @@ LL | type FooRet = impl std::fmt::Debug;
5
5
| -------------------- the found opaque type
6
6
...
7
7
LL | type Foo = impl Iterator<Item = FooItem>;
8
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found opaque type
8
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch resolving `<Bar as Iterator>::Item == Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> Option<String> + 'static)>`
9
9
|
10
+ note: expected this to be `Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> Option<String> + 'static)>`
11
+ --> $DIR/issue-70877.rs:13:17
12
+ |
13
+ LL | type Item = FooItem;
14
+ | ^^^^^^^
10
15
= note: expected struct `Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> Option<String> + 'static)>`
11
16
found struct `Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> impl Debug + 'static)>`
12
17
Original file line number Diff line number Diff line change @@ -4,9 +4,6 @@ error[E0277]: the trait bound `&[i8]: From<&[u8]>` is not satisfied
4
4
LL | let _: &[i8] = data.into();
5
5
| ^^^^ the trait `From<&[u8]>` is not implemented for `&[i8]`
6
6
|
7
- = help: the following implementations were found:
8
- <[T; LANES] as From<Simd<T, LANES>>>
9
- <[bool; LANES] as From<Mask<T, LANES>>>
10
7
= note: required because of the requirements on the impl of `Into<&[i8]>` for `&[u8]`
11
8
12
9
error: aborting due to previous error
You can’t perform that action at this time.
0 commit comments