mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-21 06:02:08 +00:00
25 lines
765 B
Plaintext
25 lines
765 B
Plaintext
error[E0277]: the trait bound `Vec<usize>: [const] Index<_>` is not satisfied
|
|
--> $DIR/issue-94675.rs:11:9
|
|
|
|
|
LL | self.bar[0] = baz.len();
|
|
| ^^^^^^^^^^^
|
|
|
|
error[E0277]: the trait bound `Vec<usize>: [const] IndexMut<usize>` is not satisfied
|
|
--> $DIR/issue-94675.rs:11:9
|
|
|
|
|
LL | self.bar[0] = baz.len();
|
|
| ^^^^^^^^^^^
|
|
|
|
error[E0277]: the trait bound `Vec<usize>: [const] Index<usize>` is not satisfied
|
|
--> $DIR/issue-94675.rs:11:9
|
|
|
|
|
LL | self.bar[0] = baz.len();
|
|
| ^^^^^^^^^^^
|
|
|
|
|
note: required by a bound in `std::ops::IndexMut::index_mut`
|
|
--> $SRC_DIR/core/src/ops/index.rs:LL:COL
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|