about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2020-10-16 17:46:59 -0300
committerSantiago Pastorino <spastorino@gmail.com>2020-10-27 14:45:02 -0300
commit708fc3b1a2c6f9e6c83cfdba3e5e90855b054cd8 (patch)
tree84c8de7582a3927e9f4c8a7447f97d4a9451d8d9 /src/test/ui/error-codes
parent2a71e45411881dda12a704d7491428d8a23347c0 (diff)
downloadrust-708fc3b1a2c6f9e6c83cfdba3e5e90855b054cd8.tar.gz
rust-708fc3b1a2c6f9e6c83cfdba3e5e90855b054cd8.zip
Add unsized_fn_params feature
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0277.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/error-codes/E0277.stderr b/src/test/ui/error-codes/E0277.stderr
index c2e15007cf9..647e0c7d76f 100644
--- a/src/test/ui/error-codes/E0277.stderr
+++ b/src/test/ui/error-codes/E0277.stderr
@@ -6,11 +6,11 @@ LL | fn f(p: Path) { }
    |
    = help: within `Path`, the trait `Sized` is not implemented for `[u8]`
    = note: required because it appears within the type `Path`
-   = help: unsized locals are gated as an unstable feature
+   = 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 f(p: &Path) { }
-   |         ^
+LL | fn f(&p: Path) { }
+   |      ^
 
 error[E0277]: the trait bound `i32: Foo` is not satisfied
   --> $DIR/E0277.rs:17:15