13 lines
377 B
Rust
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
|
||
|
}
|