This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
42ee400b0f
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 17:55:58 -03:00
fn
foo
(
)
->
i32
{
const
{
let
x
=
5
+
10
;
x
/
3
}
}
Add inline const tests
2020-10-06 17:53:12 -03:00
fn
main
(
)
{
assert_eq!
(
5
,
foo
(
)
)
;
}
Copy permalink