#![crate_type = "rlib"] pub trait Tr { fn tr(&self); } pub struct St(pub Vec); impl Tr for St { fn tr(&self) { match self { &St(ref v) => { v.iter(); } } } }