fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
648 B18 linesraw
1error[E0533]: expected unit struct/variant or constant, found method `<<S as Tr>::A>::f<u8>`
2  --> $DIR/qualified-path-params.rs:20:9
3   |
4LL |         <S as Tr>::A::f::<u8> => {}
5   |         ^^^^^^^^^^^^^^^^^^^^^
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   |               ^^^^^^^^^^^^^^^^^^^^^ ranges require char or numeric types
12   |
13   = note: start type: {integer}
14   = note: end type: fn() {S::f::<u8>}
15
16error: aborting due to 2 previous errors
17
18For more information about this error, try `rustc --explain E0029`.