summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/auxiliary/issue-18501.rs
blob: dd914b464fa588366b8deed37f97815d2c7c3bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![crate_type = "rlib"]
struct Foo;

trait Tr {
    fn tr(&self);
}

impl Tr for Foo {
    fn tr(&self) {}
}

fn take_method<T>(f: fn(&T), t: &T) {}

#[inline]
pub fn pass_method() {
    take_method(Tr::tr, &Foo);
}