blob: 39797574b977709e1238a1a88605da793161f67c [file] [log] [blame]
fn main() {
for x in -5..5 {
//~^ ERROR: the trait bound `usize: Neg` is not satisfied
//~| HELP: consider specifying an integer type that can be negative
do_something(x);
}
let x = -5;
//~^ ERROR: the trait bound `usize: Neg` is not satisfied
//~| HELP: consider specifying an integer type that can be negative
do_something(x);
}
fn do_something(_val: usize) {}