]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/bool_typo_err_suggest.rs
Rollup merge of #106879 - JohnTitor:issue-42114, r=compiler-errors
[rust.git] / tests / 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 }