fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.4 KiB35 linesraw
1error[E0107]: function takes 2 generic arguments but 1 generic argument was supplied
2  --> $DIR/foreign-generic-mismatch.rs:6:31
3   |
4LL |     foreign_generic_mismatch::const_arg::<()>();
5   |                               ^^^^^^^^^   -- supplied 1 generic argument
6   |                               |
7   |                               expected 2 generic arguments
8   |
9note: function defined here, with 2 generic parameters: `N`, `T`
10  --> $DIR/auxiliary/foreign-generic-mismatch.rs:1:8
11   |
12LL | pub fn const_arg<const N: usize, T>() {}
13   |        ^^^^^^^^^ --------------  -
14help: add missing generic argument
15   |
16LL |     foreign_generic_mismatch::const_arg::<(), T>();
17   |                                             +++
18
19error[E0107]: function takes 1 lifetime argument but 2 lifetime arguments were supplied
20  --> $DIR/foreign-generic-mismatch.rs:8:31
21   |
22LL |     foreign_generic_mismatch::lt_arg::<'static, 'static>();
23   |                               ^^^^^^            ------- help: remove this lifetime argument
24   |                               |
25   |                               expected 1 lifetime argument
26   |
27note: function defined here, with 1 lifetime parameter: `'a`
28  --> $DIR/auxiliary/foreign-generic-mismatch.rs:3:8
29   |
30LL | pub fn lt_arg<'a: 'a>() {}
31   |        ^^^^^^ --
32
33error: aborting due to 2 previous errors
34
35For more information about this error, try `rustc --explain E0107`.