Update src/const-safety.md

Co-authored-by: Ralf Jung <post@ralfj.de>
pull/221/head
Oliver Scherer 5 years ago committed by GitHub
parent 6d4b58895c
commit 74c65981a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,8 +34,8 @@ with the main definitions.
A very simple example of an unconst operation is
```rust
static S:i32 = 0;
const BAD:bool = (&S as *const i32 as usize) % 16 == 0;
static S: i32 = 0;
const BAD: bool = (&S as *const i32 as usize) % 16 == 0;
```
The modulo operation here is not supported by the miri engine because evaluating

Loading…
Cancel
Save