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-01-26 14:43:24 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
5f68a5d204
rust
/
tests
/
ui
/
consts
/
control-flow
/
issue-50577.rs
7 lines
124 B
Rust
Raw
Normal View
History
Unescape
Escape
Reorganize, bless and add tests for const control flow This creates a new test directory, `ui/consts/control-flow` to hold tests related to control flow in a const context. It also blesses all existing tests with the new error messages, and adds new tests for the `const_if_match` feature.
2019-11-18 05:11:42 +00:00
fn
main
(
)
{
enum
Foo
{
Update tests
2020-05-21 19:49:38 +00:00
Drop
=
assert_eq!
(
1
,
1
)
,
//~^ ERROR `if` may be missing an `else` clause
Reorganize, bless and add tests for const control flow This creates a new test directory, `ui/consts/control-flow` to hold tests related to control flow in a const context. It also blesses all existing tests with the new error messages, and adds new tests for the `const_if_match` feature.
2019-11-18 05:11:42 +00:00
}
}
Reference in New Issue
Copy Permalink