fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1012 B24 linesraw
1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2  --> $DIR/E0277.rs:13:6
3   |
4LL | 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
13error[E0277]: the trait bound `i32: Foo` is not satisfied
14  --> $DIR/E0277.rs:17:15
15   |
16LL | fn some_func<T: Foo>(foo: T) {
17   |    ---------    --- required by this bound in `some_func`
18...
19LL |     some_func(5i32);
20   |               ^^^^ the trait `Foo` is not implemented for `i32`
21
22error: aborting due to 2 previous errors
23
24For more information about this error, try `rustc --explain E0277`.