summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/bool_typo_err_suggest.rs
blob: deab0fb05b76b4cbe2e5ab4c7e41410b436e50f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Suggest the boolean value instead of emit a generic error that the value
// True is not in the scope.

fn main() {
    let x = True;
    //~^ ERROR cannot find value `True` in this scope
    //~| HELP you may want to use a bool value instead

    let y = False;
    //~^ ERROR cannot find value `False` in this scope
    //~| HELP you may want to use a bool value instead
}