Des exemples de code pour programmer en Rust
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
197 B

  1. mod mon_module { // définit un module
  2. pub fn test(){ // pub signifie attribut public
  3. println ! ("Bonjour mes amis ! ") ;
  4. }
  5. }
  6. fn main(){
  7. mon_module::test() ; // exécute le module
  8. }