]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/path-by-value.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / suggestions / path-by-value.stderr
CommitLineData
0bf4aa26
XL
1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2 --> $DIR/path-by-value.rs:3:6
3 |
4LL | fn f(p: Path) { }
3dfed10e 5 | ^ doesn't have a size known at compile-time
0bf4aa26 6 |
1b1a35ee
XL
7 = help: within `Path`, the trait `Sized` is not implemented for `[u8]`
8 = note: required because it appears within the type `Path`
0bf4aa26 9 = help: unsized locals are gated as an unstable feature
3dfed10e
XL
10help: function arguments must have a statically known size, borrowed types always have a known size
11 |
12LL | fn f(p: &Path) { }
13 | ^
0bf4aa26
XL
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.