summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/closure-substs-ambiguity.rs
blob: 48432f4020f87042baaf3fa3be8a97a95f99cc54 (plain)
1
2
3
4
5
6
7
// compile-flags: -Ztrait-solver=next
// check-pass

fn main() {
    let mut x: Vec<_> = vec![];
    x.extend(Some(1i32).into_iter().map(|x| x));
}