blob: 477128d7d9f08c0ef47c864acf86a6a57e47aa7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
error[E0277]: the trait bound `[u8]: std::marker::Sized` is not satisfied in `std::path::Path`
--> $DIR/E0277.rs:23:6
|
LL | fn f(p: Path) { }
| ^ `[u8]` does not have a constant size known at compile-time
|
= help: within `std::path::Path`, the trait `std::marker::Sized` is not implemented for `[u8]`
= note: required because it appears within the type `std::path::Path`
= note: all local variables must have a statically known size
error[E0277]: the trait bound `i32: Foo` is not satisfied
--> $DIR/E0277.rs:27:5
|
LL | some_func(5i32);
| ^^^^^^^^^ the trait `Foo` is not implemented for `i32`
|
note: required by `some_func`
--> $DIR/E0277.rs:19:1
|
LL | fn some_func<T: Foo>(foo: T) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.
|