]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr
Auto merge of #104334 - compiler-errors:ufcs-sugg-wrong-def-id, r=estebank
[rust.git] / src / test / ui / const-generics / min_const_generics / const-expression-suggest-missing-braces-without-turbofish.stderr
1 error: comparison operators cannot be chained
2   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:6:8
3    |
4 LL |     foo<BAR + 3>();
5    |        ^       ^
6    |
7 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
8    |
9 LL |     foo::<BAR + 3>();
10    |        ++
11
12 error: comparison operators cannot be chained
13   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:9:8
14    |
15 LL |     foo<BAR + BAR>();
16    |        ^         ^
17    |
18 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
19    |
20 LL |     foo::<BAR + BAR>();
21    |        ++
22
23 error: comparison operators cannot be chained
24   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:12:8
25    |
26 LL |     foo<3 + 3>();
27    |        ^     ^
28    |
29 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
30    |
31 LL |     foo::<3 + 3>();
32    |        ++
33
34 error: comparison operators cannot be chained
35   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:15:8
36    |
37 LL |     foo<BAR - 3>();
38    |        ^       ^
39    |
40 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
41    |
42 LL |     foo::<BAR - 3>();
43    |        ++
44
45 error: comparison operators cannot be chained
46   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:18:8
47    |
48 LL |     foo<BAR - BAR>();
49    |        ^         ^
50    |
51 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
52    |
53 LL |     foo::<BAR - BAR>();
54    |        ++
55
56 error: comparison operators cannot be chained
57   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:21:8
58    |
59 LL |     foo<100 - BAR>();
60    |        ^         ^
61    |
62 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
63    |
64 LL |     foo::<100 - BAR>();
65    |        ++
66
67 error: comparison operators cannot be chained
68   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:24:8
69    |
70 LL |     foo<bar<i32>()>();
71    |        ^   ^
72    |
73 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
74    |
75 LL |     foo::<bar<i32>()>();
76    |        ++
77
78 error: expected one of `;` or `}`, found `>`
79   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:24:19
80    |
81 LL |     foo<bar<i32>()>();
82    |                   ^ expected one of `;` or `}`
83
84 error: comparison operators cannot be chained
85   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:28:8
86    |
87 LL |     foo<bar::<i32>()>();
88    |        ^            ^
89    |
90 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
91    |
92 LL |     foo::<bar::<i32>()>();
93    |        ++
94
95 error: comparison operators cannot be chained
96   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:31:8
97    |
98 LL |     foo<bar::<i32>() + BAR>();
99    |        ^                  ^
100    |
101 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
102    |
103 LL |     foo::<bar::<i32>() + BAR>();
104    |        ++
105
106 error: comparison operators cannot be chained
107   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:34:8
108    |
109 LL |     foo<bar::<i32>() - BAR>();
110    |        ^                  ^
111    |
112 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
113    |
114 LL |     foo::<bar::<i32>() - BAR>();
115    |        ++
116
117 error: comparison operators cannot be chained
118   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:37:8
119    |
120 LL |     foo<BAR - bar::<i32>()>();
121    |        ^                  ^
122    |
123 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
124    |
125 LL |     foo::<BAR - bar::<i32>()>();
126    |        ++
127
128 error: comparison operators cannot be chained
129   --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:40:8
130    |
131 LL |     foo<BAR - bar::<i32>()>();
132    |        ^                  ^
133    |
134 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
135    |
136 LL |     foo::<BAR - bar::<i32>()>();
137    |        ++
138
139 error: aborting due to 13 previous errors
140