summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/auxiliary/issue-11225-1.rs
blob: 2c6f899a0f49a74f203600c5e5ec8524df38baa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod inner {
    pub trait Trait {
        fn f(&self) { f(); }
        fn f_ufcs(&self) { f_ufcs(); }
    }

    impl Trait for isize {}

    fn f() {}
    fn f_ufcs() {}
}

pub fn foo<T: inner::Trait>(t: T) {
    t.f();
}
pub fn foo_ufcs<T: inner::Trait>(t: T) {
    T::f_ufcs(&t);
}