This commit is contained in:
Stephen Chung
2020-08-02 15:39:08 +08:00
parent 11f2b04152
commit 73cda2d4f9
15 changed files with 409 additions and 246 deletions

View File

@@ -13,7 +13,12 @@ pub fn test_fn(input: &NonClonable) -> bool {
}
fn main() {
let n = NonClonable { a: 0.0, b: 10, c: 'a', d: true };
let n = NonClonable {
a: 0.0,
b: 10,
c: 'a',
d: true,
};
if test_fn(n) {
println!("yes");
} else {