diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-04-19 22:00:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-19 22:00:10 +0200 |
| commit | 349fae3a32cfcb650f252104bb5c88ee32d9bebf (patch) | |
| tree | cf8f2f18e679b72ece157fe7a559ef9f7933763b /src/test/ui/error-codes | |
| parent | 761243572e8ed83368f9bdcc7e0198ef1bea3a66 (diff) | |
| parent | a8193ca4c3204d6d8aafadab80ff5c6b284aa76e (diff) | |
| download | rust-349fae3a32cfcb650f252104bb5c88ee32d9bebf.tar.gz rust-349fae3a32cfcb650f252104bb5c88ee32d9bebf.zip | |
Rollup merge of #84313 - lcnr:sized-err-msg, r=petrochenkov
fix suggestion for unsized function parameters taken from `@fasterthanlime's` article https://fasterthanli.me/articles/whats-in-the-box
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 |
