Skip to content

Commit 419bf6b

Browse files
committed
fix suggestion for unsized function parameters
1 parent 392d549 commit 419bf6b

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
@@ -16,8 +16,8 @@ LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> {
1616
= help: unsized fn params are gated as an unstable feature
1717
help: function arguments must have a statically known size, borrowed types always have a known size
1818
|
19-
LL | fn bug<T>() -> impl Iterator<Item = [(); { |&x: [u8]| x }]> {
20-
| ^
19+
LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: &[u8]| x }]> {
20+
| ^
2121

2222
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2323
--> $DIR/ice-6251.rs:4:54

0 commit comments

Comments
 (0)