mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
12 lines
170 B
Rust
12 lines
170 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| ());
|
||
|
}
|