]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/result_unit_error.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / result_unit_error.stderr
CommitLineData
f20569fa
XL
1error: this returns a `Result<_, ()>
2 --> $DIR/result_unit_error.rs:3:1
3 |
4LL | pub fn returns_unit_error() -> Result<u32, ()> {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `-D clippy::result-unit-err` implied by `-D warnings`
8 = help: use a custom Error type instead
9
10error: this returns a `Result<_, ()>
11 --> $DIR/result_unit_error.rs:12:5
12 |
13LL | fn get_that_error(&self) -> Result<bool, ()>;
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 |
16 = help: use a custom Error type instead
17
18error: this returns a `Result<_, ()>
19 --> $DIR/result_unit_error.rs:14:5
20 |
21LL | fn get_this_one_too(&self) -> Result<bool, ()> {
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 |
24 = help: use a custom Error type instead
25
26error: this returns a `Result<_, ()>
27 --> $DIR/result_unit_error.rs:32:5
28 |
29LL | pub fn unit_error(&self) -> Result<usize, ()> {
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 |
32 = help: use a custom Error type instead
33
34error: this returns a `Result<_, ()>
35 --> $DIR/result_unit_error.rs:41:5
36 |
37LL | pub fn should_lint() -> ResInv<(), usize> {
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 |
40 = help: use a custom Error type instead
41
42error: aborting due to 5 previous errors
43