summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-93282.stderr
blob: c6140bb821e48b985390c2ececf2adeeb7f9b152 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
error: expected `while`, `for`, `loop` or `{` after a label
  --> $DIR/issue-93282.rs:2:9
   |
LL |     f<'a,>
   |         ^ expected `while`, `for`, `loop` or `{` after a label
   |
help: add `'` to close the char literal
   |
LL |     f<'a',>
   |         +

error: expected one of `.`, `:`, `;`, `?`, `for`, `loop`, `while`, `}`, or an operator, found `,`
  --> $DIR/issue-93282.rs:2:9
   |
LL |     f<'a,>
   |         ^ expected one of 9 possible tokens
   |
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
   |
LL |     f::<'a,>
   |      ++

error: expected `while`, `for`, `loop` or `{` after a label
  --> $DIR/issue-93282.rs:13:11
   |
LL |     bar('y, x);
   |           ^ expected `while`, `for`, `loop` or `{` after a label
   |
help: add `'` to close the char literal
   |
LL |     bar('y', x);
   |           +

error[E0308]: mismatched types
  --> $DIR/issue-93282.rs:13:9
   |
LL |     bar('y, x);
   |     --- ^^ expected `usize`, found `char`
   |     |
   |     arguments to this function are incorrect
   |
note: function defined here
  --> $DIR/issue-93282.rs:7:4
   |
LL | fn bar(a: usize, b: usize) -> usize {
   |    ^^^ --------

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0308`.