summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/eq-less-to-less-eq.rs
blob: 23c6c59d7a62b90f3720a6abce15fa84a38ebae0 (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
fn foo() {
    let a = 0;
    let b = 4;
    if a =< b { //~ERROR
        println!("yay!");
    }
}

fn bar() {
    let a = 0;
    let b = 4;
    if a = <b { //~ERROR
        println!("yay!");
    }
}

fn baz() {
    let a = 0;
    let b = 4;
    if a = < b { //~ERROR
        println!("yay!");
    }
}

fn qux() {
    let a = 0;
    let b = 4;
    if a =< i32>::abs(-4) { //~ERROR: mismatched types
        println!("yay!");
    }
}

fn main() {}