rust/tests/ui/traits/new-solver/deduce-ty-from-object.rs
2023-03-07 17:11:35 +00:00

7 lines
139 B
Rust

// check-pass
// compile-flags: -Ztrait-solver=next
fn main() {
let x: Box<dyn Iterator<Item = ()>> = Box::new(std::iter::empty());
}