]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0277.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0277.stderr
1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2   --> $DIR/E0277.rs:11:6
3    |
4 LL | 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]`
8    = note: required because it appears within the type `Path`
9    = help: unsized fn params are gated as an unstable feature
10 help: function arguments must have a statically known size, borrowed types always have a known size
11    |
12 LL | fn f(p: &Path) { }
13    |         +
14
15 error[E0277]: the trait bound `i32: Foo` is not satisfied
16   --> $DIR/E0277.rs:15:15
17    |
18 LL |     some_func(5i32);
19    |     --------- ^^^^ the trait `Foo` is not implemented for `i32`
20    |     |
21    |     required by a bound introduced by this call
22    |
23 note: required by a bound in `some_func`
24   --> $DIR/E0277.rs:7:17
25    |
26 LL | fn some_func<T: Foo>(foo: T) {
27    |                 ^^^ required by this bound in `some_func`
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0277`.