rust/src/test/ui/reachable
Ariel Ben-Yehuda 77f4022303 Revert "Change error count messages"
This reverts commit 5558c64f33.
2017-07-02 13:49:30 +03:00
..
expr_add.rs
expr_add.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_again.rs
expr_again.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_andand.rs
expr_andand.stderr
expr_array.rs
expr_array.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_assign.rs
expr_assign.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_block.rs
expr_block.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_box.rs
expr_box.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_call.rs
expr_call.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_cast.rs
expr_cast.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_if.rs
expr_if.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_loop.rs
expr_loop.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_match.rs
expr_match.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_method.rs
expr_method.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_oror.rs
expr_oror.stderr
expr_repeat.rs
expr_repeat.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_return.rs
expr_return.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_struct.rs
expr_struct.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_tup.rs
expr_tup.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_type.rs
expr_type.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_unary.rs
expr_unary.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
expr_while.rs
expr_while.stderr Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
README.md

A variety of tests around reachability. These tests in general check two things:

  • that we get unreachable code warnings in reasonable locations;
  • that we permit coercions into ! from expressions which diverge, where an expression "diverges" if it must execute some subexpression of type !, or it has type ! itself.