]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/rfc-2383-lint-reason/expect_unfulfilled_expectation.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / lint / rfc-2383-lint-reason / expect_unfulfilled_expectation.stderr
1 warning: this lint expectation is unfulfilled
2 --> $DIR/expect_unfulfilled_expectation.rs:7:11
3 |
4 LL | #![expect(unfulfilled_lint_expectations, reason = "idk why you would expect this")]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: idk why you would expect this
8 = note: the `unfulfilled_lint_expectations` lint can't be expected and will always produce this message
9 = note: `#[warn(unfulfilled_lint_expectations)]` on by default
10
11 warning: this lint expectation is unfulfilled
12 --> $DIR/expect_unfulfilled_expectation.rs:13:10
13 |
14 LL | #[expect(unfulfilled_lint_expectations, reason = "a local: idk why you would expect this")]
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 |
17 = note: a local: idk why you would expect this
18 = note: the `unfulfilled_lint_expectations` lint can't be expected and will always produce this message
19
20 warning: this lint expectation is unfulfilled
21 --> $DIR/expect_unfulfilled_expectation.rs:18:14
22 |
23 LL | #[expect(unused_mut, reason = "this expectation will create a diagnostic with the default lint level")]
24 | ^^^^^^^^^^
25 |
26 = note: this expectation will create a diagnostic with the default lint level
27
28 warning: this lint expectation is unfulfilled
29 --> $DIR/expect_unfulfilled_expectation.rs:25:22
30 |
31 LL | #[expect(unused, unfulfilled_lint_expectations, reason = "the expectation for `unused` should be fulfilled")]
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 |
34 = note: the expectation for `unused` should be fulfilled
35 = note: the `unfulfilled_lint_expectations` lint can't be expected and will always produce this message
36
37 warning: 4 warnings emitted
38