summaryrefslogtreecommitdiffstats
path: root/tests/ui/implied-bounds/trait-where-clause-implied.rs
blob: 5f9ab66d3c896e9bbb69ecf5a0dec1277b8dc914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass

pub trait Trait<'a, 'b> {
    fn method(self, _: &'static &'static ())
    where
        'a: 'b;
}

impl<'a> Trait<'a, 'static> for () {
    // On first glance, this seems like we have the extra implied bound that
    // `'a: 'static`, but we know this from the trait method where clause.
    fn method(self, _: &'static &'a ()) {}
}

fn main() {}