mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
16 lines
654 B
Plaintext
16 lines
654 B
Plaintext
|
error[E0381]: used binding `blah` is possibly-uninitialized
|
||
|
--> $DIR/duplicate-label-E0381-issue-129274.rs:8:33
|
||
|
|
|
||
|
LL | let blah: Option<String>;
|
||
|
| ---- binding declared here but left uninitialized
|
||
|
LL | if true {
|
||
|
LL | blah = Some("".to_string());
|
||
|
| ---- binding initialized here in some conditions
|
||
|
LL | }
|
||
|
LL | if let Some(blah) = blah.as_ref() {
|
||
|
| ^^^^ `blah` used here but it is possibly-uninitialized
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|
||
|
For more information about this error, try `rustc --explain E0381`.
|