summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/issue-26448-1.rs
blob: 7d2d75bf2e87856804c667af100e237919742459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass

pub trait Foo<T> {
    fn foo(self) -> T;
}

impl<'a, T> Foo<T> for &'a str where &'a str: Into<T> {
    fn foo(self) -> T {
        panic!();
    }
}

fn main() {}