about summary refs log tree commit diff
path: root/tests/ui
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2021-04-18 19:35:23 +0200
committerlcnr <rust@lcnr.de>2021-04-19 20:06:19 +0200
commit419bf6bbd827f07406447419d84a154ce9294aa8 (patch)
tree744a32e004e2e68dd06608972ff18db5a3edeb21 /tests/ui
parent392d54963fd77a42ef054881004a7a0acad542d4 (diff)
downloadrust-419bf6bbd827f07406447419d84a154ce9294aa8.tar.gz
rust-419bf6bbd827f07406447419d84a154ce9294aa8.zip
fix suggestion for unsized function parameters
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/crashes/ice-6251.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/crashes/ice-6251.stderr b/tests/ui/crashes/ice-6251.stderr
index 9a7cf4b0919..8498c040780 100644
--- a/tests/ui/crashes/ice-6251.stderr
+++ b/tests/ui/crashes/ice-6251.stderr
@@ -16,8 +16,8 @@ LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> {
    = help: unsized fn params are gated as an unstable feature
 help: function arguments must have a statically known size, borrowed types always have a known size
    |
-LL | fn bug<T>() -> impl Iterator<Item = [(); { |&x: [u8]| x }]> {
-   |                                             ^
+LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: &[u8]| x }]> {
+   |                                                ^
 
 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
   --> $DIR/ice-6251.rs:4:54