summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/deduce-ty-from-object.rs
blob: 7398bce7b61cfbd0792dce2ef8020faf67dc8e47 (plain)
1
2
3
4
5
6
// check-pass
// compile-flags: -Ztrait-solver=next

fn main() {
    let x: Box<dyn Iterator<Item = ()>> = Box::new(std::iter::empty());
}