mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-26 20:21:59 +00:00
14 lines
227 B
Rust
14 lines
227 B
Rust
//@ 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> {
|
|
()
|
|
}
|