Remove questionable pattern
This commit is contained in:
parent
0643494bc4
commit
b13e072c9e
1 changed files with 0 additions and 12 deletions
|
|
@ -8,18 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
struct Foo<T>(T, T);
|
||||
|
||||
impl<T> Foo<T> {
|
||||
fn foo(&self) {
|
||||
match *self {
|
||||
Foo::<T>(ref x, ref y) => {
|
||||
println!("Goodbye, World!")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
match 42 {
|
||||
x if x < 7 => (),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue