This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
rust
/
tests
/
ui
/
consts
/
const_let_assign.rs
11 lines
99 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 assignments in const contexts
2018-11-19 11:19:14 +01:00
struct
S
(
i32
)
;
const
A
:
(
)
=
{
let
mut
s
=
S
(
0
)
;
s
.
0
=
1
;
}
;
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink