rust/src/test/ui/test-attrs
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
..
auxiliary
decl-macro-test.rs
inaccessible-test-modules.rs
inaccessible-test-modules.stderr
run-unexported-tests.rs Move tests from test/run-fail to UI 2020-05-06 14:02:55 +09:00
test-allow-fail-attr.rs Re-enable Emscripten's exception handling support 2019-10-25 15:16:36 -07:00
test-attr-non-associated-functions.rs defatalize expand_test_or_bench 2020-03-24 06:28:56 +01:00
test-attr-non-associated-functions.stderr defatalize expand_test_or_bench 2020-03-24 06:28:56 +01:00
test-cant-be-shadowed.rs
test-fn-signature-verification-for-explicit-return-type.rs
test-main-not-dead-attr.rs
test-main-not-dead.rs
test-on-macro.rs Make error and warning annotations mandatory in UI tests 2019-11-10 21:01:02 +01:00
test-on-macro.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
test-runner-hides-buried-main.rs Make closures and generators a must use types 2020-07-28 00:00:00 +00:00
test-runner-hides-main.rs
test-runner-hides-start.rs
test-should-fail-good-message.rs Re-enable Emscripten's exception handling support 2019-10-25 15:16:36 -07:00
test-should-panic-attr.rs Moving more build-pass tests to check-pass 2020-04-23 20:21:38 -07:00
test-should-panic-attr.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
test-vs-cfg-test.rs
test-warns-dead-code.rs
test-warns-dead-code.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00