rust/tests/ui/traits/new-solver/deduce-ty-from-object.rs

7 lines
139 B
Rust
Raw Normal View History

2023-03-07 04:17:37 +00:00
// check-pass
// compile-flags: -Ztrait-solver=next
fn main() {
let x: Box<dyn Iterator<Item = ()>> = Box::new(std::iter::empty());
}