summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-88276-unary-plus.stderr
blob: 363e08201f48245be5d1efe091c103eba694d79a (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: leading `+` is not supported
  --> $DIR/issue-88276-unary-plus.rs:4:13
   |
LL |     let _ = +1;
   |             ^ unexpected `+`
   |
help: try removing the `+`
   |
LL -     let _ = +1;
LL +     let _ = 1;
   |

error: leading `+` is not supported
  --> $DIR/issue-88276-unary-plus.rs:5:20
   |
LL |     let _ = (1.0 + +2.0) * +3.0;
   |                    ^ unexpected `+`
   |
help: try removing the `+`
   |
LL -     let _ = (1.0 + +2.0) * +3.0;
LL +     let _ = (1.0 + 2.0) * +3.0;
   |

error: leading `+` is not supported
  --> $DIR/issue-88276-unary-plus.rs:5:28
   |
LL |     let _ = (1.0 + +2.0) * +3.0;
   |                            ^ unexpected `+`
   |
help: try removing the `+`
   |
LL -     let _ = (1.0 + +2.0) * +3.0;
LL +     let _ = (1.0 + +2.0) * 3.0;
   |

error: leading `+` is not supported
  --> $DIR/issue-88276-unary-plus.rs:7:14
   |
LL |     let _ = [+3, 4+6];
   |              ^ unexpected `+`
   |
help: try removing the `+`
   |
LL -     let _ = [+3, 4+6];
LL +     let _ = [3, 4+6];
   |

error: aborting due to 4 previous errors