]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-94675.stderr
Rollup merge of #106699 - eholk:await-chains-drop-tracking, r=wesleywiser
[rust.git] / tests / ui / consts / issue-94675.stderr
1 error[E0277]: the trait bound `Vec<usize>: ~const Index<_>` is not satisfied
2   --> $DIR/issue-94675.rs:9:9
3    |
4 LL |         self.bar[0] = baz.len();
5    |         ^^^^^^^^^^^ vector indices are of type `usize` or ranges of `usize`
6    |
7    = help: the trait `~const Index<_>` is not implemented for `Vec<usize>`
8 note: the trait `Index<_>` is implemented for `Vec<usize>`, but that implementation is not `const`
9   --> $DIR/issue-94675.rs:9:9
10    |
11 LL |         self.bar[0] = baz.len();
12    |         ^^^^^^^^^^^
13
14 error[E0277]: the trait bound `Vec<usize>: ~const IndexMut<usize>` is not satisfied
15   --> $DIR/issue-94675.rs:9:9
16    |
17 LL |         self.bar[0] = baz.len();
18    |         ^^^^^^^^^^^ vector indices are of type `usize` or ranges of `usize`
19    |
20    = help: the trait `~const IndexMut<usize>` is not implemented for `Vec<usize>`
21 note: the trait `IndexMut<usize>` is implemented for `Vec<usize>`, but that implementation is not `const`
22   --> $DIR/issue-94675.rs:9:9
23    |
24 LL |         self.bar[0] = baz.len();
25    |         ^^^^^^^^^^^
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0277`.