We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8b546b commit 13b668bCopy full SHA for 13b668b
tests/ui/parser/eq-gt-to-gt-eq.rs
@@ -1,27 +1,38 @@
1
// Check that we try to correct `=>` to `>=` in conditions.
2
3
-fn foo() {
+fn main() {
4
let a = 0;
5
let b = 4;
6
if a => b { //~ERROR
7
println!("yay!");
8
}
9
10
11
+fn foo() {
12
+ let a = 0;
13
+ if a => 4 { //~ERROR
14
+ println!("yay!");
15
+ }
16
+}
17
+
18
fn bar() {
19
20
- if a = >b { //~ERROR
21
+ if a => b && true { //~ERROR
22
23
24
25
-fn baz() {
26
+fn qux() {
27
28
- if a = > b { //~ERROR
29
+ if true && a => b { //~ERROR
30
31
32
33
-fn main() {}
34
+fn baz() {
35
36
+ let b = 4;
37
+ let _ = a => b; //~ERROR
38
0 commit comments