mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
16 lines
222 B
Rust
16 lines
222 B
Rust
//@ known-bug: #122904
|
|
trait T {}
|
|
|
|
type Alias<'a> = impl T;
|
|
|
|
struct S;
|
|
impl<'a> T for &'a S {}
|
|
|
|
fn with_positive(fun: impl Fn(Alias<'_>)) {
|
|
with_positive(|&n| ());
|
|
}
|
|
|
|
fn main(Alias<'_>) {
|
|
with_positive(|&a| ());
|
|
}
|