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

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

7 lines
139 B
Rust
Raw Normal View History

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