Commit graph

5 commits

Author SHA1 Message Date
Slanterns
38fa66aac3
Rename empty_tuple_assignment to monkey_barrel 2020-11-12 10:38:03 +08:00
Slanterns
659aa778d3
test: add ()=()=()=... to weird-exprs.rs 2020-11-11 23:40:11 +08:00
Tomasz Miąsko
821d50aa0c Make closures and generators a must use types
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-07-28 00:00:00 +00:00
Bastian Kauschke
698b20eeda update tests 2020-03-31 19:01:49 +02:00
Vadim Petrochenkov
9be35f82c1 tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
Renamed from src/test/run-pass/weird-exprs.rs (Browse further)