]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/closing-args-token.min.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / closing-args-token.min.stderr
1 error: expressions must be enclosed in braces to be used as const generic arguments
2   --> $DIR/closing-args-token.rs:11:9
3    |
4 LL |     S::<5 + 2 >> 7>;
5    |         ^^^^^
6    |
7 help: enclose the `const` expression in braces
8    |
9 LL |     S::<{ 5 + 2 } >> 7>;
10    |         ^       ^
11
12 error: comparison operators cannot be chained
13   --> $DIR/closing-args-token.rs:11:16
14    |
15 LL |     S::<5 + 2 >> 7>;
16    |                ^  ^
17    |
18 help: split the comparison into two
19    |
20 LL |     S::<5 + 2 >> 7 && 7>;
21    |                    ^^^^
22
23 error: comparison operators cannot be chained
24   --> $DIR/closing-args-token.rs:17:20
25    |
26 LL |     S::<{ 5 + 2 } >> 7>;
27    |                    ^  ^
28    |
29 help: split the comparison into two
30    |
31 LL |     S::<{ 5 + 2 } >> 7 && 7>;
32    |                        ^^^^
33
34 error: expected expression, found `;`
35   --> $DIR/closing-args-token.rs:22:16
36    |
37 LL |     T::<0 >= 3>;
38    |                ^ expected expression
39
40 error: comparison operators cannot be chained
41   --> $DIR/closing-args-token.rs:28:12
42    |
43 LL |     T::<x >>= 2 > 0>;
44    |            ^^   ^
45    |
46 help: split the comparison into two
47    |
48 LL |     T::<x >>= 2 && 2 > 0>;
49    |                 ^^^^
50
51 error: aborting due to 5 previous errors
52