diff options
| author | lcnr <rust@lcnr.de> | 2021-04-18 19:35:23 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2021-04-19 20:06:19 +0200 |
| commit | a8193ca4c3204d6d8aafadab80ff5c6b284aa76e (patch) | |
| tree | db88e248997c9679790b4d08f781f50ea61e1d2e /src/test/ui/error-codes | |
| parent | 41f0e13bc53396852f4f1338ce5d8be0d1125b08 (diff) | |
| download | rust-a8193ca4c3204d6d8aafadab80ff5c6b284aa76e.tar.gz rust-a8193ca4c3204d6d8aafadab80ff5c6b284aa76e.zip | |
fix suggestion for unsized function parameters
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0277.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/error-codes/E0277.stderr b/src/test/ui/error-codes/E0277.stderr index 1f54af4d154..dea0bb259f5 100644 --- a/src/test/ui/error-codes/E0277.stderr +++ b/src/test/ui/error-codes/E0277.stderr @@ -9,8 +9,8 @@ LL | fn f(p: Path) { } = 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:15:15 |
