summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/auxiliary/priv-impl-prim-ty.rs
blob: 8ccbd3f12bf8a983331555805268e9dde3277a70 (plain)
1
2
3
4
5
6
7
8
9
pub trait A {
    fn frob(&self);
}

impl A for isize { fn frob(&self) {} }

pub fn frob<T:A>(t: T) {
    t.frob();
}