about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/refine-err.rs
blob: 7518cee97c44427225b270843414b46a43f8d74a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![deny(refining_impl_trait)]

trait FromRow {
    fn prepare(self) -> impl Fn() -> T;
    //~^ ERROR cannot find type `T` in this scope
}

impl<T> FromRow for T {
    fn prepare(self) -> impl Fn() -> T {
        || todo!()
    }
}

fn main() {}