This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
58e901b6fd1163172149fd422565523b17eed5f0
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 21:34:05 +09:00
// check-pass
allow constant evaluation of function calls
2015-10-14 12:30:10 +02:00
Stabilize `let` bindings and destructuring in constants and const fn
2018-12-28 20:05:22 +01:00
const
fn
i
(
(
a
,
b
)
:
(
u32
,
u32
)
)
->
u32
{
test: adjust for the move to MIR-based const checking.
2016-05-03 01:57:35 +03:00
a
+
b
}
allow constant evaluation of function calls
2015-10-14 12:30:10 +02:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink