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-11 17:37:41 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
aad1db7373
rust
/
tests
/
ui
/
let-else
/
let-else.rs
9 lines
106 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
Stabilize the let_else feature
2022-08-30 12:46:35 +00:00
fn
main
(
)
{
let
Some
(
x
)
=
Some
(
1
)
else
{
return
;
}
;
assert_eq!
(
x
,
1
)
;
}
Reference in New Issue
Copy Permalink