about summary refs log tree commit diff
path: root/src/tools/clippy/tests
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
commita8193ca4c3204d6d8aafadab80ff5c6b284aa76e (patch)
treedb88e248997c9679790b4d08f781f50ea61e1d2e /src/tools/clippy/tests
parent41f0e13bc53396852f4f1338ce5d8be0d1125b08 (diff)
downloadrust-a8193ca4c3204d6d8aafadab80ff5c6b284aa76e.tar.gz
rust-a8193ca4c3204d6d8aafadab80ff5c6b284aa76e.zip
fix suggestion for unsized function parameters
Diffstat (limited to 'src/tools/clippy/tests')
-rw-r--r--src/tools/clippy/tests/ui/crashes/ice-6251.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/tests/ui/crashes/ice-6251.stderr b/src/tools/clippy/tests/ui/crashes/ice-6251.stderr
index 9a7cf4b0919..8498c040780 100644
--- a/src/tools/clippy/tests/ui/crashes/ice-6251.stderr
+++ b/src/tools/clippy/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