rust/tests/ui/try_err.stderr

39 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-06-22 22:34:07 +02:00
error: returning an `Err(_)` with the `?` operator
2019-07-01 00:28:12 +02:00
--> $DIR/try_err.rs:11:9
2019-06-19 05:22:51 +02:00
|
2019-06-25 03:28:46 +02:00
LL | Err(err)?;
| ^^^^^^^^^ help: try this: `return Err(err)`
2019-06-19 05:22:51 +02:00
|
note: lint level defined here
2019-06-25 03:28:46 +02:00
--> $DIR/try_err.rs:3:9
2019-06-19 05:22:51 +02:00
|
LL | #![deny(clippy::try_err)]
| ^^^^^^^^^^^^^^^
2019-06-22 22:34:07 +02:00
error: returning an `Err(_)` with the `?` operator
2019-07-01 00:28:12 +02:00
--> $DIR/try_err.rs:21:9
2019-06-19 05:22:51 +02:00
|
2019-06-25 03:28:46 +02:00
LL | Err(err)?;
| ^^^^^^^^^ help: try this: `return Err(err.into())`
2019-06-19 05:22:51 +02:00
2019-06-22 22:34:07 +02:00
error: returning an `Err(_)` with the `?` operator
2019-07-01 00:28:12 +02:00
--> $DIR/try_err.rs:41:17
2019-06-19 05:22:51 +02:00
|
2019-06-25 03:28:46 +02:00
LL | Err(err)?;
| ^^^^^^^^^ help: try this: `return Err(err)`
2019-06-19 05:22:51 +02:00
2019-06-22 22:34:07 +02:00
error: returning an `Err(_)` with the `?` operator
2019-07-01 00:28:12 +02:00
--> $DIR/try_err.rs:60:17
2019-06-19 05:22:51 +02:00
|
2019-06-25 03:28:46 +02:00
LL | Err(err)?;
| ^^^^^^^^^ help: try this: `return Err(err.into())`
2019-06-19 05:22:51 +02:00
2019-08-08 14:33:34 +02:00
error: returning an `Err(_)` with the `?` operator
--> $DIR/try_err.rs:96:9
|
LL | Err(foo!())?;
| ^^^^^^^^^^^^ help: try this: `return Err(foo!())`
error: aborting due to 5 previous errors
2019-06-19 05:22:51 +02:00