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 13:37:37 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
453b51a65a
rust
/
tests
/
ui
/
consts
/
const_let_assign.rs
11 lines
100 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 assignments in const contexts
2018-11-19 10:19:14 +00:00
struct
S
(
i32
)
;
const
A
:
(
)
=
{
let
mut
s
=
S
(
0
)
;
s
.
0
=
1
;
}
;
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink