File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 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;
55 | -------------------- the found opaque type
66...
77LL | 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)>`
99 |
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+ | ^^^^^^^
1015 = note: expected struct `Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> Option<String> + 'static)>`
1116 found struct `Box<(dyn for<'r> Fn(&'r (dyn ToString + 'r)) -> impl Debug + 'static)>`
1217
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
44LL | let _: &[i8] = data.into();
55 | ^^^^ the trait `From<&[u8]>` is not implemented for `&[i8]`
66 |
7- = help: the following implementations were found:
8- <[T; LANES] as From<Simd<T, LANES>>>
9- <[bool; LANES] as From<Mask<T, LANES>>>
107 = note: required because of the requirements on the impl of `Into<&[i8]>` for `&[u8]`
118
129error: aborting due to previous error
You can’t perform that action at this time.
0 commit comments