rust-clippy/tests/ui/crashes/trivial_bounds.rs

14 lines
165 B
Rust
Raw Normal View History

2020-03-10 04:17:15 +00:00
// run-pass
#![feature(trivial_bounds)]
#![allow(unused, trivial_bounds)]
fn test_trivial_bounds()
where
i32: Iterator,
{
for _ in 2i32 {}
}
fn main() {}