This website requires JavaScript.
Explore
Sign In
mirror
/
rust
mirror of
https://github.com/rust-lang/rust
Watch
1
Star
0
Fork
You've already forked rust
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
rust
/
tests
/
ui
/
inline-const
/
const-expr-basic.rs
13 lines
131 B
Rust
Raw
Permalink
Blame
History
//@ run-pass
fn
foo
(
)
->
i32
{
const
{
let
x
=
5
+
10
;
x
/
3
}
}
fn
main
(
)
{
assert_eq!
(
5
,
foo
(
)
)
;
}
Reference in New Issue
View Git Blame
Copy Permalink