This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-05-03 21:47:36 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
e53d6dd35b
rust
/
tests
/
ui
/
numbers-arithmetic
/
integer-literal-suffix-inference-3.rs
5 lines
73 B
Rust
Raw
Normal View
History
Unescape
Escape
Add `// run-pass` annotations to all the tests under `ui/run-pass/`. (I may have accidentally added it to some auxilliary crates as well; my emacs-macro-based methodology was pretty crude.)
2018-08-30 12:18:55 +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 19:30:25 +00:00
fn
main
(
)
{
println!
(
"
{}
"
,
std
::
mem
::
size_of_val
(
&
1
)
)
;
}
Reference in New Issue
Copy Permalink