about summary refs log tree commit diff
path: root/tests/crashes/139556.rs
blob: 60dc8d7c3afcc2231414f4e94bdcf2afee581247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ known-bug: #139556

trait T {}

type Alias<'a> = impl T;

struct S;
impl<'a> T for &'a S {}

#[define_opaque(Alias)]
fn with_positive(fun: impl Fn(Alias<'_>)) {
    with_positive(|&n| ());
}