about summary refs log tree commit diff
path: root/tests/crashes/130346.rs
blob: ee25f0fcc5b193f845cce0c19c358b083dda1a4e (plain)
1
2
3
4
5
6
7
8
9
10
//@ known-bug: rust-lang/rust#130346

#![feature(non_lifetime_binders)]
#![allow(unused)]

trait A<T>: Iterator<Item = T> {}

fn demo(x: &mut impl for<U> A<U>) {
    let _: Option<u32> = x.next(); // Removing this line stops the ICE
}