mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
14 lines
195 B
Rust
14 lines
195 B
Rust
//@ 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| ());
|
|
}
|