Skip to content
Snippets Groups Projects
Commit 9b675554 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

exemple overflow

parent 791c1d5f
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -108,9 +108,10 @@ fn main() {
- **Attention**: En mode *release*, cela ne sera pas le cas.
<pre><code data-trim="hljs rust" class="lang-rust">
fn main() {
let x:i32 = 1234567891011; // en pratique cela produit un warning
let x:i32 = 12345678;
let y:i32 = 12345678;
println!("L'entier x vaut {}.", x); // affichage
println!("L'entier x vaut {}.", x*y); // affichage
}
</code></pre>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment