rust/src/test/ui/issues/issue-26805.rs
2019-07-27 18:56:16 +03:00

7 lines
119 B
Rust

// run-pass
struct NonOrd;
fn main() {
let _: Box<dyn Iterator<Item = _>> = Box::new(vec![NonOrd].into_iter());
}