diff options
| author | bors <bors@rust-lang.org> | 2018-10-18 21:42:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-10-18 21:42:21 +0000 |
| commit | 45088b11f55e57a65fa1ebcf6e3b6014152eb516 (patch) | |
| tree | e3b30d5b617dbbe7166549db8d8ba962d6a8b32c /src/test/ui/error-codes | |
| parent | e7f5d48059aa14cc2808473564deadd72d1e818d (diff) | |
| parent | ed10a3faae1fd1176b2edf4a61438e0542c103b9 (diff) | |
| download | rust-45088b11f55e57a65fa1ebcf6e3b6014152eb516.tar.gz rust-45088b11f55e57a65fa1ebcf6e3b6014152eb516.zip | |
Auto merge of #54979 - estebank:path-unsized, r=nikomatsakis
Custom E0277 diagnostic for `Path` r? @nikomatsakis we have a way to target `Path` exclusively, we need to identify the correct text to show to consider #23286 fixed.
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0277.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/error-codes/E0277.stderr b/src/test/ui/error-codes/E0277.stderr index ab9020222ea..d0c089fa0f3 100644 --- a/src/test/ui/error-codes/E0277.stderr +++ b/src/test/ui/error-codes/E0277.stderr @@ -2,7 +2,7 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation --> $DIR/E0277.rs:23:6 | LL | fn f(p: Path) { } - | ^ doesn't have a size known at compile-time + | ^ borrow the `Path` instead | = help: within `std::path::Path`, the trait `std::marker::Sized` is not implemented for `[u8]` = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> |
