mirror of https://github.com/rust-lang/rust
11 lines
313 B
Rust
11 lines
313 B
Rust
// Regression test for #36053. ICE was caused due to obligations
|
|
// being added to a special, dedicated fulfillment cx during
|
|
// a probe.
|
|
|
|
use std::iter::once;
|
|
fn main() {
|
|
once::<&str>("str").fuse().filter(|a: &str| true).count();
|
|
//~^ ERROR the method
|
|
//~| ERROR type mismatch in closure arguments
|
|
}
|