about summary refs log tree commit diff
path: root/tests/ui/parser/range-exclusive-dotdotlt.stderr
blob: af25e1df343de2a8fb17687f797dfc7130522f8d (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
error: expected type, found `10`
  --> $DIR/range-exclusive-dotdotlt.rs:2:17
   |
LL |     let _ = 0..<10;
   |                -^^ expected type
   |                |
   |                help: remove the `<` to write an exclusive range

error: expected one of `!`, `(`, `+`, `::`, `<`, `>`, or `as`, found `;`
  --> $DIR/range-exclusive-dotdotlt.rs:8:20
   |
LL |     let _ = 0..<foo;
   |                -   ^ expected one of 7 possible tokens
   |                |
   |                help: remove the `<` to write an exclusive range

error: expected `::`, found `;`
  --> $DIR/range-exclusive-dotdotlt.rs:14:18
   |
LL |     let _ = <foo>;
   |                  ^ expected `::`

error: expected type, found `1`
  --> $DIR/range-exclusive-dotdotlt.rs:19:26
   |
LL |     let _ = [1, 2, 3][..<1];
   |                         -^ expected type
   |                         |
   |                         help: remove the `<` to write an exclusive range

error: expected one of `!`, `(`, `+`, `::`, `<`, `>`, or `as`, found `]`
  --> $DIR/range-exclusive-dotdotlt.rs:25:29
   |
LL |     let _ = [1, 2, 3][..<foo];
   |                         -   ^ expected one of 7 possible tokens
   |                         |
   |                         help: remove the `<` to write an exclusive range

error: expected `::`, found `]`
  --> $DIR/range-exclusive-dotdotlt.rs:31:30
   |
LL |     let _ = [1, 2, 3][..<foo>];
   |                              ^ expected `::`

error: aborting due to 6 previous errors