about summary refs log tree commit diff
path: root/tests/ui/regions/issue-26448-1.rs
blob: 4d1853a93727e5fb69103aea81966e2a0457741a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ revisions: current next
//@ [next] compile-flags: -Znext-solver
//@ ignore-compare-mode-next-solver (explicit revisions)
//@ check-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() {}