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-04-30 03:57:37 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
8152da82b5
rust
/
tests
/
ui
/
inline-const
/
const-expr-basic.rs
13 lines
131 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
Parse inline const expressions
2020-09-21 20:55:58 +00:00
fn
foo
(
)
->
i32
{
const
{
let
x
=
5
+
10
;
x
/
3
}
}
Add inline const tests
2020-10-06 20:53:12 +00:00
fn
main
(
)
{
assert_eq!
(
5
,
foo
(
)
)
;
}
Reference in New Issue
Copy Permalink