This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
42ee400b0f
rust
/
tests
/
ui
/
numbers-arithmetic
/
integer-literal-suffix-inference-3.rs
5 lines
74 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
librustc: Remove the fallback to `int` for integers and `f64` for floating point numbers for real. This will break code that looks like: let mut x = 0; while ... { x += 1; } println!("{}", x); Change that code to: let mut x = 0i; while ... { x += 1; } println!("{}", x); Closes #15201. [breaking-change]
2014-06-27 12:30:25 -07:00
fn
main
(
)
{
println!
(
"
{}
"
,
std
::
mem
::
size_of_val
(
&
1
)
)
;
}
Copy permalink