about summary refs log tree commit diff
path: root/src/test/ui/weird-exprs.rs
AgeCommit message (Collapse)AuthorLines
2020-11-12Rename empty_tuple_assignment to monkey_barrelSlanterns-2/+2
2020-11-11test: add `()=()=()=...` to weird-exprs.rsSlanterns-0/+7
2020-07-28Make closures and generators a must use typesTomasz Miąsko-1/+1
Warn about unused expressions with closure or generator type. This follows existing precedence of must use annotations present on `FnOnce`, `FnMut`, `Fn` traits, which already indirectly apply to closures in some cases, e.g.,: ```rust fn f() -> impl FnOnce() { || {} } fn main() { // an existing warning: unused implementer of `std::ops::FnOnce` that must be used: f(); // a new warning: unused closure that must be used: || {}; } ```
2020-03-31update testsBastian Kauschke-1/+1
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-0/+180