fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: returning an `Err(_)` with the `?` operator 2 --> $DIR/try_err.rs:22:9 3 | 4LL | Err(err)?; 5 | ^^^^^^^^^ help: try: `return Err(err)` 6 | 7note: the lint level is defined here 8 --> $DIR/try_err.rs:3:9 9 | 10LL | #![deny(clippy::try_err)] 11 | ^^^^^^^^^^^^^^^ 12 13error: returning an `Err(_)` with the `?` operator 14 --> $DIR/try_err.rs:32:9 15 | 16LL | Err(err)?; 17 | ^^^^^^^^^ help: try: `return Err(err.into())` 18 19error: returning an `Err(_)` with the `?` operator 20 --> $DIR/try_err.rs:52:17 21 | 22LL | Err(err)?; 23 | ^^^^^^^^^ help: try: `return Err(err)` 24 25error: returning an `Err(_)` with the `?` operator 26 --> $DIR/try_err.rs:71:17 27 | 28LL | Err(err)?; 29 | ^^^^^^^^^ help: try: `return Err(err.into())` 30 31error: returning an `Err(_)` with the `?` operator 32 --> $DIR/try_err.rs:91:23 33 | 34LL | Err(_) => Err(1)?, 35 | ^^^^^^^ help: try: `return Err(1)` 36 | 37 = note: this error originates in the macro `__inline_mac_fn_calling_macro` (in Nightly builds, run with -Z macro-backtrace for more info) 38 39error: returning an `Err(_)` with the `?` operator 40 --> $DIR/try_err.rs:98:23 41 | 42LL | Err(_) => Err(inline!(1))?, 43 | ^^^^^^^^^^^^^^^^ help: try: `return Err(inline!(1))` 44 | 45 = note: this error originates in the macro `__inline_mac_fn_calling_macro` (in Nightly builds, run with -Z macro-backtrace for more info) 46 47error: returning an `Err(_)` with the `?` operator 48 --> $DIR/try_err.rs:125:9 49 | 50LL | Err(inline!(inline!(String::from("aasdfasdfasdfa"))))?; 51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Err(inline!(inline!(String::from("aasdfasdfasdfa"))))` 52 53error: returning an `Err(_)` with the `?` operator 54 --> $DIR/try_err.rs:132:9 55 | 56LL | Err(io::ErrorKind::WriteZero)? 57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Poll::Ready(Err(io::ErrorKind::WriteZero.into()))` 58 59error: returning an `Err(_)` with the `?` operator 60 --> $DIR/try_err.rs:134:9 61 | 62LL | Err(io::Error::new(io::ErrorKind::InvalidInput, "error"))? 63 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Poll::Ready(Err(io::Error::new(io::ErrorKind::InvalidInput, "error")))` 64 65error: returning an `Err(_)` with the `?` operator 66 --> $DIR/try_err.rs:142:9 67 | 68LL | Err(io::ErrorKind::NotFound)? 69 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Poll::Ready(Some(Err(io::ErrorKind::NotFound.into())))` 70 71error: returning an `Err(_)` with the `?` operator 72 --> $DIR/try_err.rs:151:16 73 | 74LL | return Err(42)?; 75 | ^^^^^^^^ help: try: `Err(42)` 76 77error: aborting due to 11 previous errors 78