summaryrefslogtreecommitdiff
path: root/rust/chap4/test.rs
blob: eabcaeb1bc2b611819abe9d3ae240400e0d5b2c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn read(y: bool) {
    if y {
        println!("Y is true");
    }

}

fn main() {

    read(t);
    let t: bool = true;

    return;
}