fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB37 linesraw
1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2  --> $DIR/E0277.rs:11:6
3   |
4LL | fn f(p: Path) { }
5   |      ^ doesn't have a size known at compile-time
6   |
7   = help: within `Path`, the trait `Sized` is not implemented for `[u8]`
8note: required because it appears within the type `Path`
9  --> $SRC_DIR/std/src/path.rs:LL:COL
10   = help: unsized fn params are gated as an unstable feature
11help: function arguments must have a statically known size, borrowed types always have a known size
12   |
13LL | fn f(p: &Path) { }
14   |         +
15
16error[E0277]: the trait bound `i32: Foo` is not satisfied
17  --> $DIR/E0277.rs:15:15
18   |
19LL |     some_func(5i32);
20   |     --------- ^^^^ the trait `Foo` is not implemented for `i32`
21   |     |
22   |     required by a bound introduced by this call
23   |
24help: this trait has no implementations, consider adding one
25  --> $DIR/E0277.rs:3:1
26   |
27LL | trait Foo {
28   | ^^^^^^^^^
29note: required by a bound in `some_func`
30  --> $DIR/E0277.rs:7:17
31   |
32LL | fn some_func<T: Foo>(foo: T) {
33   |                 ^^^ required by this bound in `some_func`
34
35error: aborting due to 2 previous errors
36
37For more information about this error, try `rustc --explain E0277`.