]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/bool_typo_err_suggest.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / suggestions / bool_typo_err_suggest.rs
1 // Suggest the boolean value instead of emit a generic error that the value
2 // True is not in the scope.
3
4 fn main() {
5     let x = True;
6     //~^ ERROR cannot find value `True` in this scope
7     //~| HELP you may want to use a bool value instead
8
9     let y = False;
10     //~^ ERROR cannot find value `False` in this scope
11     //~| HELP you may want to use a bool value instead
12 }