rust/tests/ui/suggestions/bool_typo_err_suggest.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
377 B
Rust
Raw Normal View History

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