mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
13 lines
194 B
Rust
13 lines
194 B
Rust
//@ known-bug: #122904
|
|
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| ());
|
|
}
|