Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // functions2.rs
- // Make me compile! Scroll down for hints :)
- fn main() {
- call_me(3);
- }
- fn num call_me(num) {
- for i in 0..num {
- println!("Ring! Call number {}", i + 1);
- }
- }
- // Rust requires that all parts of a function's signature have type annotations,
- // but `call_me` is missing the type annotation of `num`.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement