]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/path-by-value.stderr
Auto merge of #65099 - pnkfelix:issue-63154-needed-more-normalize, r=nagisa
[rust.git] / src / test / ui / suggestions / path-by-value.stderr
1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2   --> $DIR/path-by-value.rs:3:6
3    |
4 LL | fn f(p: Path) { }
5    |      ^ borrow the `Path` instead
6    |
7    = help: within `std::path::Path`, the trait `std::marker::Sized` is not implemented for `[u8]`
8    = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
9    = note: required because it appears within the type `std::path::Path`
10    = note: all local variables must have a statically known size
11    = help: unsized locals are gated as an unstable feature
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.