rust/tests/ui/return
2023-08-10 02:26:11 +02:00
..
issue-64620.rs
issue-64620.stderr
issue-82612-return-mutable-reference.rs
issue-82612-return-mutable-reference.stderr
issue-86188-return-not-in-fn-body.rs
issue-86188-return-not-in-fn-body.stderr
return-from-diverging.rs
return-from-diverging.stderr
return-impl-trait-bad.rs
return-impl-trait-bad.stderr
return-impl-trait.fixed
return-impl-trait.rs
return-impl-trait.stderr
return-match-array-const.rs
return-match-array-const.stderr
return-struct.rs Bugfix: 'can_have_side_effects()' would return 'false' for struct/enum/array/tuple literals unless *all* sub-expressions had side effects. This would easily allow side effects to slip through, and also wrongly label empty literals as having side effects. Add some tests for the last point 2023-08-10 02:26:11 +02:00
return-struct.stderr Bugfix: 'can_have_side_effects()' would return 'false' for struct/enum/array/tuple literals unless *all* sub-expressions had side effects. This would easily allow side effects to slip through, and also wrongly label empty literals as having side effects. Add some tests for the last point 2023-08-10 02:26:11 +02:00
return-type.rs
return-type.stderr
return-unit-from-diverging.rs
return-unit-from-diverging.stderr
tail-expr-as-potential-return.rs
tail-expr-as-potential-return.stderr