mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +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();
|
|
}
|
|
}
|
|
}
|
|
}
|