mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
11 lines
235 B
Rust
11 lines
235 B
Rust
//@ 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
|
|
}
|