about summary refs log tree commit diff
path: root/tests/crashes/139381.rs
blob: 6757b584e82a1febcac9230f1610bb13f6496004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ known-bug: #139381
//@ needs-rustc-debug-assertions
trait A<'a> {
    type Assoc: ?Sized;
}

impl<'a> A<'a> for () {
    type Assoc = &'a ();
}

fn hello() -> impl for<'a> A<'a, Assoc: Into<u8> + 'static + Copy> {
    ()
}