summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2018/issue-51008-1.rs
blob: 8ae5e827846258ac3e4000ad71c57b1f6fd39cab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Regression test for #51008 -- the anonymous lifetime in `&i32` was
// being incorrectly considered part of the "elided lifetimes" from
// the impl.
//
// run-pass

#![feature(rust_2018_preview)]

trait A {

}

impl<F> A for F where F: PartialEq<fn(&i32)> { }

fn main() {}