Current view:
top level
-
src
- main.rs
Date:
2020-11-24 00:20:40
Hit
Total
Coverage
Lines
4
6
66.7 %
Functions
1
2
50.0 %
Branches
1
2
50.0 %
1
use std::fmt::Debug;
2
3
0
#[derive(Debug)]
4
pub struct Ciao {
5
0
pub saluto: String,
6
}
7
8
1
fn main() {
9
1
let ciao = Ciao{ saluto: String::from("salve") };
10
11
1
assert!(ciao.saluto == "salve");
12
1
}