This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
848e0a23f3
rust
/
src
/
test
/
ui
/
consts
/
const-fn-destructuring-arg.rs
8 lines
83 B
Rust
Raw
Normal View
History
Unescape
Escape
Stabilize `let` bindings and destructuring in constants and const fn
2018-12-28 13:05:22 -06:00
// compile-pass
allow constant evaluation of function calls
2015-10-14 05:30:10 -05:00
Stabilize `let` bindings and destructuring in constants and const fn
2018-12-28 13:05:22 -06:00
const
fn
i
(
(
a
,
b
)
:
(
u32
,
u32
)
)
->
u32
{
test: adjust for the move to MIR-based const checking.
2016-05-02 17:57:35 -05:00
a
+
b
}
allow constant evaluation of function calls
2015-10-14 05:30:10 -05:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink