]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0277.stderr
Propagate bounds from generators
[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:23:6
3    |
4 LL | fn f(p: Path) { }
5    |      ^ doesn't have a size known at compile-time
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/second-edition/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[E0277]: the trait bound `i32: Foo` is not satisfied
14   --> $DIR/E0277.rs:27:5
15    |
16 LL |     some_func(5i32);
17    |     ^^^^^^^^^ the trait `Foo` is not implemented for `i32`
18    |
19 note: required by `some_func`
20   --> $DIR/E0277.rs:19:1
21    |
22 LL | fn some_func<T: Foo>(foo: T) {
23    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0277`.