2016-03-12 21:32:24 -06:00
|
|
|
#![feature(custom_attribute)]
|
|
|
|
#![allow(dead_code, unused_attributes)]
|
|
|
|
|
|
|
|
// #[miri_run(expected = "Int(3628800)")]
|
2016-03-12 22:39:09 -06:00
|
|
|
// fn factorial_loop() -> i64 {
|
2016-03-12 21:32:24 -06:00
|
|
|
// let mut product = 1;
|
|
|
|
// let mut i = 1;
|
|
|
|
|
|
|
|
// while i <= 10 {
|
|
|
|
// product *= i;
|
|
|
|
// i += 1;
|
|
|
|
// }
|
|
|
|
|
|
|
|
// product
|
|
|
|
// }
|