mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
18 lines
241 B
Rust
18 lines
241 B
Rust
#![crate_type = "rlib"]
|
|
|
|
pub trait Tr {
|
|
fn tr(&self);
|
|
}
|
|
|
|
pub struct St<V>(pub Vec<V>);
|
|
|
|
impl<V> Tr for St<V> {
|
|
fn tr(&self) {
|
|
match self {
|
|
&St(ref v) => {
|
|
v.iter();
|
|
}
|
|
}
|
|
}
|
|
}
|