mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +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();
|
|
}
|
|
}
|
|
}
|
|
}
|