We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assert
1 parent dc29300 commit 12b8262Copy full SHA for 12b8262
posts/inside-rust/2019-11-23-const-if-match.md
@@ -30,7 +30,7 @@ const fn gcd(a: u32, b: u32) -> u32 {
30
}
31
32
33
-const _: () = assert!(std::mem::size_of::<usize>(), 8, "Only 64-bit platforms are supported");
+const _: () = assert!(std::mem::size_of::<usize>() == 8, "Only 64-bit platforms are supported");
34
```
35
36
## What exactly is going on here?
0 commit comments