fork/rust

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

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

master
778 B18 linesraw
1error[E0533]: expected unit struct, unit variant or constant, found associated function `<<S as Tr>::A>::f<u8>`
2  --> $DIR/qualified-path-params.rs:20:9
3   |
4LL |         <S as Tr>::A::f::<u8> => {}
5   |         ^^^^^^^^^^^^^^^^^^^^^ not a unit struct, unit variant or constant
6
7error[E0029]: only `char` and numeric types are allowed in range patterns
8  --> $DIR/qualified-path-params.rs:22:15
9   |
10LL |         0 ..= <S as Tr>::A::f::<u8> => {}
11   |         -     ^^^^^^^^^^^^^^^^^^^^^ this is of type `fn() {S::f::<u8>}` but it should be `char` or numeric
12   |         |
13   |         this is of type `{integer}`
14
15error: aborting due to 2 previous errors
16
17Some errors have detailed explanations: E0029, E0533.
18For more information about an error, try `rustc --explain E0029`.