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-01 04:27:38 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
300901b705
rust
/
tests
/
ui
/
consts
/
const-fn-destructuring-arg.rs
8 lines
81 B
Rust
Raw
Normal View
History
Unescape
Escape
use check-pass instead of build-pass in consts ui test suits
2020-11-10 12:34:05 +00:00
// check-pass
allow constant evaluation of function calls
2015-10-14 10:30:10 +00:00
Stabilize `let` bindings and destructuring in constants and const fn
2018-12-28 19:05:22 +00:00
const
fn
i
(
(
a
,
b
)
:
(
u32
,
u32
)
)
->
u32
{
test: adjust for the move to MIR-based const checking.
2016-05-02 22:57:35 +00:00
a
+
b
}
allow constant evaluation of function calls
2015-10-14 10:30:10 +00:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink