|
| 1 | +error[E0381]: used binding `x` is possibly-uninitialized |
| 2 | + --> $DIR/use-bindings.rs:11:15 |
| 3 | + | |
| 4 | +LL | let (Ok(x) | Err(!)) = res_void; |
| 5 | + | - |
| 6 | + | | |
| 7 | + | binding initialized here in some conditions |
| 8 | + | binding declared here but left uninitialized |
| 9 | +LL | println!("{x}"); |
| 10 | + | ^^^ `x` used here but it is possibly-uninitialized |
| 11 | + | |
| 12 | + = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 13 | + |
| 14 | +error[E0381]: used binding `x` is possibly-uninitialized |
| 15 | + --> $DIR/use-bindings.rs:14:15 |
| 16 | + | |
| 17 | +LL | let (Ok(x) | Err(!)) = &res_void; |
| 18 | + | - |
| 19 | + | | |
| 20 | + | binding initialized here in some conditions |
| 21 | + | binding declared here but left uninitialized |
| 22 | +LL | println!("{x}"); |
| 23 | + | ^^^ `x` used here but it is possibly-uninitialized |
| 24 | + | |
| 25 | + = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 26 | + |
| 27 | +error[E0381]: used binding `x` is possibly-uninitialized |
| 28 | + --> $DIR/use-bindings.rs:17:15 |
| 29 | + | |
| 30 | +LL | let (Err(!) | Ok(x)) = res_void; |
| 31 | + | - |
| 32 | + | | |
| 33 | + | binding initialized here in some conditions |
| 34 | + | binding declared here but left uninitialized |
| 35 | +LL | println!("{x}"); |
| 36 | + | ^^^ `x` used here but it is possibly-uninitialized |
| 37 | + | |
| 38 | + = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 39 | + |
| 40 | +error[E0381]: used binding `x` is possibly-uninitialized |
| 41 | + --> $DIR/use-bindings.rs:21:37 |
| 42 | + | |
| 43 | +LL | Ok(x) | Err(!) => println!("{x}"), |
| 44 | + | - ^^^ `x` used here but it is possibly-uninitialized |
| 45 | + | | |
| 46 | + | binding initialized here in some conditions |
| 47 | + | binding declared here but left uninitialized |
| 48 | + | |
| 49 | + = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 50 | + |
| 51 | +error[E0381]: used binding `x` is possibly-uninitialized |
| 52 | + --> $DIR/use-bindings.rs:25:37 |
| 53 | + | |
| 54 | +LL | Err(!) | Ok(x) => println!("{x}"), |
| 55 | + | - ^^^ `x` used here but it is possibly-uninitialized |
| 56 | + | | |
| 57 | + | binding initialized here in some conditions |
| 58 | + | binding declared here but left uninitialized |
| 59 | + | |
| 60 | + = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 61 | + |
| 62 | +error[E0381]: used binding `x` is possibly-uninitialized |
| 63 | + --> $DIR/use-bindings.rs:31:50 |
| 64 | + | |
| 65 | +LL | Ok(Ok(x) | Err(!)) | Err(!) => println!("{x}"), |
| 66 | + | - ^^^ `x` used here but it is possibly-uninitialized |
| 67 | + | | |
| 68 | + | binding initialized here in some conditions |
| 69 | + | binding declared here but left uninitialized |
| 70 | + | |
| 71 | + = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 72 | + |
| 73 | +error: aborting due to 6 previous errors |
| 74 | + |
| 75 | +For more information about this error, try `rustc --explain E0381`. |
0 commit comments