rust/tests/crashes/130346.rs

11 lines
235 B
Rust
Raw Normal View History

2024-09-15 14:18:41 -05:00
//@ 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
}