summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-82566-2.stderr
blob: ef9a414307cc9128c4342dd641478cc0ec3a8291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
error: comparison operators cannot be chained
  --> $DIR/issue-82566-2.rs:17:23
   |
LL | fn foo1() -> [(); Foo1<10>::SUM] {
   |                       ^  ^
   |
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
   |
LL | fn foo1() -> [(); Foo1::<10>::SUM] {
   |                       ++

error: expected one of `.`, `?`, `]`, or an operator, found `,`
  --> $DIR/issue-82566-2.rs:21:26
   |
LL | fn foo2() -> [(); Foo2<10, 20>::SUM] {
   |                          ^ expected one of `.`, `?`, `]`, or an operator
   |
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
   |
LL | fn foo2() -> [(); Foo2::<10, 20>::SUM] {
   |                       ++

error: expected one of `.`, `?`, `]`, or an operator, found `,`
  --> $DIR/issue-82566-2.rs:26:26
   |
LL | fn foo3() -> [(); Foo3<10, 20, 30>::SUM] {
   |                          ^ expected one of `.`, `?`, `]`, or an operator
   |
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
   |
LL | fn foo3() -> [(); Foo3::<10, 20, 30>::SUM] {
   |                       ++

error: aborting due to 3 previous errors