rust/tests/crashes/122904.rs

12 lines
170 B
Rust
Raw Normal View History

//@ known-bug: #122904
trait T {}
type Alias<'a> = impl T;
struct S;
impl<'a> T for &'a S {}
fn with_positive(fun: impl Fn(Alias<'_>)) {
with_positive(|&n| ());
}