]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lang-items/wrong-number-generic-args-index.stderr
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / lang-items / wrong-number-generic-args-index.stderr
1 error[E0718]: `index` language item must be applied to a trait with 1 generic argument
2   --> $DIR/wrong-number-generic-args-index.rs:11:1
3    |
4 LL | #[lang = "index"]
5    | ^^^^^^^^^^^^^^^^^
6 LL | trait MyIndex<'a, T> {}
7    |              ------- this trait has 2 generic arguments, not 1
8
9 error[E0608]: cannot index into a value of type `[{integer}; 5]`
10   --> $DIR/wrong-number-generic-args-index.rs:17:13
11    |
12 LL |     let _ = arr[2];
13    |             ^^^^^^
14
15 error: aborting due to 2 previous errors
16
17 Some errors have detailed explanations: E0608, E0718.
18 For more information about an error, try `rustc --explain E0608`.