rust/tests/ui/suggestions/bool_typo_err_suggest.rs

13 lines
377 B
Rust

// 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
}