Skip to content

Commit e20f759

Browse files
committed
Merge pull request #592 from spastorino/macro_dry
Remove unused and wrong main function
2 parents 3463fb5 + 0e8e227 commit e20f759

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

examples/macros/dry/dry.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ op!(add_assign, Add, +=, add);
3232
op!(mul_assign, Mul, *=, mul);
3333
op!(sub_assign, Sub, -=, sub);
3434

35-
fn main() {
36-
let mut xs = iter::repeat(0f64).take(5).collect();
37-
let ys = iter::repeat(1f64).take(6).collect();
38-
39-
// this operation will fail at runtime
40-
add_assign(&mut xs, &ys);
41-
}
42-
4335
mod test {
4436
use std::iter;
4537
macro_rules! test {

0 commit comments

Comments
 (0)