CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 03:16:15 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=043fb4c412e1f12a968fb794f6771433bf12b762cfe94889b005a27c64c11632a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%225aaWLzGosSIziBU8sWdYKqSTjpD3pzDH%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d36ff76cde8cf1-BLR
Un assaggio di Rust: video 6 - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //use std::io;
- fn test() -> i32 {println!("son qui"); 100}
- fn main() {
- let anni=22;
- if anni>=180 || test()==100
- {println!("Vedo che sei maggiorenne");}
- else
- {println!("Sei minorenne");}
- let numero=1;
- match numero{
- 1|2|3=>println!("Uno, due o tre"),
- // 2=>println!("Due"),
- // 3=>println!("Tre"),
- _=>println!("Diverso da uno, due o tre"),
- }
- let gusto="fragola";
- fn nulla() {}
- match gusto {
- "limone" => println!("puah!"),
- "fragola" => println!("accettabile ..."),
- "zabaione" => println!("ORA ci siamo :) "),
- _ => nulla()
- }
- let colore = "yellow";
- let (r, g, b) = match colore {
- "red" => {
- let _x= 100;
- println!("step intermedio");
- (255, 0, 0)
- },
- "yellow" => (255, 255, 0),
- _ => (0,0,0)
- };
- println!("Traduzione in RGB: {}, {}, {}", r, g, b);
- enum MetodiPagamento
- {
- Contante(String),
- Assegno(String)
- }
- let metodo1 = {MetodiPagamento::Contante("Dollari".to_string())};
- let _metodo2 = {MetodiPagamento::Assegno("Circolare".to_string())};
- match metodo1 {
- MetodiPagamento::Contante(y) => println!("Transazione in {}!", y),
- MetodiPagamento::Assegno(y) => println!("Assegno di tipo {}!", y),
- _ => ()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 2 sec ago | 0.25 KB
-
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐
Java | 5 sec ago | 0.10 KB
-
✅⭐ Make huge profits on trading ⭐⭐ S
JavaScript | 7 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ O
JavaScript | 11 sec ago | 0.25 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 17 sec ago | 0.25 KB
-
⭐⭐⭐Profit Method⭐⭐
Java | 19 sec ago | 0.10 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ G
JavaScript | 26 sec ago | 0.25 KB
-
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 30 sec ago | 0.10 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand