Skip to content

Commit c5c6d70

Browse files
Point to closure return instead of output if defaulted
1 parent 56794fa commit c5c6d70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ui/crashes/ice-6251.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: &[u8]| x }]> {
1212
| +
1313

1414
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
15-
--> $DIR/ice-6251.rs:4:53
15+
--> $DIR/ice-6251.rs:4:54
1616
|
1717
LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> {
18-
| ^ doesn't have a size known at compile-time
18+
| ^ doesn't have a size known at compile-time
1919
|
2020
= help: the trait `std::marker::Sized` is not implemented for `[u8]`
2121
= note: the return type of a function must have a statically known size

0 commit comments

Comments
 (0)