rust/tests/ui/issues/auxiliary/issue-18514.rs
2023-01-11 09:32:08 +00:00

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();
}
}
}
}