Skip to content

Commit 00cbacb

Browse files
committed
update tests
1 parent 095ad18 commit 00cbacb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: src/test/ui/impl-trait/issues/issue-70877.stderr

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ LL | type FooRet = impl std::fmt::Debug;
55
| -------------------- the found opaque type
66
...
77
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)>`
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

Diff for: src/test/ui/suggestions/issue-71394-no-from-impl.stderr

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ error[E0277]: the trait bound `&[i8]: From<&[u8]>` is not satisfied
44
LL | 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

129
error: aborting due to previous error

0 commit comments

Comments
 (0)