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