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
453b51a65a
rust
/
tests
/
ui
/
consts
/
const-fn-destructuring-arg.rs
8 lines
82 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +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