fn f1() {
       println!("1");
}
fn main(){
    f1();
    fn f2() {
        println!("2");
    }
    f2();
    f1();
    f2();
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: