rust/tests/ui/lint/issue-109529.fixed

7 lines
174 B
Rust
Raw Normal View History

2023-03-28 20:56:28 -05:00
// run-rustfix
fn main() {
for _ in 0..=255 as u8 {} //~ ERROR range endpoint is out of range
for _ in 0..=(255 as u8) {} //~ ERROR range endpoint is out of range
}