summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-102964.rs
blob: 43ff23600766e8bc36b096ec152add8bb1b8c477 (plain)
1
2
3
4
5
6
7
8
9
10
use std::rc::Rc;
type Foo<'a, T> = &'a dyn Fn(&T);
type RcFoo<'a, T> = Rc<Foo<'a, T>>;

fn bar_function<T>(function: Foo<T>) -> RcFoo<T> {
    //~^ ERROR mismatched types
    let rc = Rc::new(function);
}

fn main() {}