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

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

7 lines
173 B
Rust
Raw Normal View History

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