rust/tests/ui/reachable
2024-03-20 22:28:56 -04:00
..
auxiliary
expr_add.rs
expr_add.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
expr_again.rs
expr_again.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
expr_andand.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
expr_array.rs
expr_array.stderr
expr_assign.rs
expr_assign.stderr
expr_block.rs
expr_block.stderr
expr_call.rs
expr_call.stderr
expr_cast.rs
expr_cast.stderr
expr_if.rs
expr_if.stderr
expr_loop.rs
expr_loop.stderr
expr_match.rs
expr_match.stderr
expr_method.rs
expr_method.stderr
expr_oror.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
expr_repeat.rs
expr_repeat.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
expr_return_in_macro.rs
expr_return_in_macro.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
expr_return.rs
expr_return.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
expr_struct.rs
expr_struct.stderr
expr_tup.rs
expr_tup.stderr
expr_type.rs
expr_type.stderr Make type_ascribe! not a built-in 2024-03-20 22:28:56 -04:00
expr_unary.rs
expr_unary.stderr
expr_while.rs
expr_while.stderr
foreign-priv.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-948.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-11225-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-11225-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-11225-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
reachable-unnameable-type-alias.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
README.md
unreachable-arm.rs
unreachable-arm.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unreachable-code-ret.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unreachable-code-ret.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unreachable-code.rs
unreachable-code.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unreachable-in-call.rs
unreachable-in-call.stderr
unreachable-loop-patterns.rs Prefer min_exhaustive_patterns in tests 2024-02-13 16:45:53 +01:00
unreachable-loop-patterns.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unreachable-try-pattern.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unreachable-try-pattern.stderr
unreachable-variant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unreachable-variant.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unwarned-match-on-never.rs
unwarned-match-on-never.stderr

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.