diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-06-19 15:53:51 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-06-19 17:32:33 -0700 |
| commit | d4bfae1319b314f9eb0507f62ac16456ee55f0d0 (patch) | |
| tree | f8d81e837e981edbbbd2852d458fb4b3f6e6ef60 /src/test/ui/error-codes | |
| parent | 76a49524bd25804794f180b8905718a35cb113d8 (diff) | |
Update message for `!Sized` types
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0277.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0277.stderr | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/error-codes/E0277.rs b/src/test/ui/error-codes/E0277.rs index 9ff2ef4da90..95f10e7206f 100644 --- a/src/test/ui/error-codes/E0277.rs +++ b/src/test/ui/error-codes/E0277.rs @@ -21,7 +21,7 @@ fn some_func<T: Foo>(foo: T) { } fn f(p: Path) { } -//~^ ERROR `[u8]` does not have a constant size known at compile-time +//~^ ERROR the size for value values of type fn main() { some_func(5i32); diff --git a/src/test/ui/error-codes/E0277.stderr b/src/test/ui/error-codes/E0277.stderr index e1c3183104a..ca5b0d2b987 100644 --- a/src/test/ui/error-codes/E0277.stderr +++ b/src/test/ui/error-codes/E0277.stderr @@ -1,8 +1,8 @@ -error[E0277]: `[u8]` does not have a constant size known at compile-time +error[E0277]: the size for value values of type `[u8]` cannot be known at compilation time --> $DIR/E0277.rs:23:6 | LL | fn f(p: Path) { } - | ^ `[u8]` does not have a constant size known at compile-time + | ^ doesn't have a size known at compile-time | = 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--sized> |
