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-02 13:07:37 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
453b51a65a
rust
/
tests
/
ui
/
numbers-arithmetic
/
integer-literal-suffix-inference-2.rs
9 lines
106 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
rustdoc: Replace no-pretty-expanded with pretty-expanded Now that features must be declared expanded source often does not compile. This adds 'pretty-expanded' to a bunch of test cases that still work.
2015-03-22 20:13:15 +00:00
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
foo
(
_
:
*
const
(
)
)
{
}
fn
main
(
)
{
Implement numeric fallback Doesn't yet converge on a fixed point, but generally works. A better algorithm will come with the implementation of default type parameter fallback. If inference fails to determine an exact integral or floating point type, it will set the type to i32 or f64, respectively. Closes #16968
2014-12-15 14:45:28 +00:00
let
a
=
3
;
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
foo
(
&
a
as
*
const
_
as
*
const
(
)
)
;
}
Reference in New Issue
Copy Permalink