]> git.lizzy.rs Git - rust.git/blob - src/test/ui/qualified/qualified-path-params.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / qualified / qualified-path-params.stderr
1 error[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    |
4 LL |         <S as Tr>::A::f::<u8> => {}
5    |         ^^^^^^^^^^^^^^^^^^^^^
6
7 error[E0029]: only `char` and numeric types are allowed in range patterns
8   --> $DIR/qualified-path-params.rs:22:15
9    |
10 LL |         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
15 error: aborting due to 2 previous errors
16
17 Some errors have detailed explanations: E0029, E0533.
18 For more information about an error, try `rustc --explain E0029`.