fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
918 B30 linesraw
1   LL|       |#![allow(unused_assignments, unused_variables)]
2   LL|       |
3   LL|      1|fn main() {
4   LL|      1|    // Initialize test constants in a way that cannot be determined at compile time, to ensure
5   LL|      1|    // rustc and LLVM cannot optimize out statements (or coverage counters) downstream from
6   LL|      1|    // dependent conditions.
7   LL|      1|    let
8   LL|      1|    is_true
9   LL|      1|    =
10   LL|      1|        std::env::args().len()
11   LL|      1|    ==
12   LL|      1|        1
13   LL|      1|    ;
14   LL|      1|    let
15   LL|      1|        mut
16   LL|      1|    countdown
17   LL|      1|    =
18   LL|      1|        0
19   LL|      1|    ;
20   LL|      1|    if
21   LL|      1|        is_true
22   LL|      1|    {
23   LL|      1|        countdown
24   LL|      1|        =
25   LL|      1|            10
26   LL|      1|        ;
27   LL|      1|    }
28                   ^0
29   LL|      1|}
30