rust/tests/ui/try_err.stderr

33 lines
876 B
Plaintext
Raw Normal View History

2019-06-22 16:34:07 -04:00
error: returning an `Err(_)` with the `?` operator
2019-06-30 18:28:12 -04:00
--> $DIR/try_err.rs:11:9
2019-06-18 23:22:51 -04:00
|
2019-06-24 21:28:46 -04:00
LL | Err(err)?;
| ^^^^^^^^^ help: try this: `return Err(err)`
2019-06-18 23:22:51 -04:00
|
note: lint level defined here
2019-06-24 21:28:46 -04:00
--> $DIR/try_err.rs:3:9
2019-06-18 23:22:51 -04:00
|
LL | #![deny(clippy::try_err)]
| ^^^^^^^^^^^^^^^
2019-06-22 16:34:07 -04:00
error: returning an `Err(_)` with the `?` operator
2019-06-30 18:28:12 -04:00
--> $DIR/try_err.rs:21:9
2019-06-18 23:22:51 -04:00
|
2019-06-24 21:28:46 -04:00
LL | Err(err)?;
| ^^^^^^^^^ help: try this: `return Err(err.into())`
2019-06-18 23:22:51 -04:00
2019-06-22 16:34:07 -04:00
error: returning an `Err(_)` with the `?` operator
2019-06-30 18:28:12 -04:00
--> $DIR/try_err.rs:41:17
2019-06-18 23:22:51 -04:00
|
2019-06-24 21:28:46 -04:00
LL | Err(err)?;
| ^^^^^^^^^ help: try this: `return Err(err)`
2019-06-18 23:22:51 -04:00
2019-06-22 16:34:07 -04:00
error: returning an `Err(_)` with the `?` operator
2019-06-30 18:28:12 -04:00
--> $DIR/try_err.rs:60:17
2019-06-18 23:22:51 -04:00
|
2019-06-24 21:28:46 -04:00
LL | Err(err)?;
| ^^^^^^^^^ help: try this: `return Err(err.into())`
2019-06-18 23:22:51 -04:00
error: aborting due to 4 previous errors