summary refs log tree commit diff
path: root/tests/ui/inline-const/uninit_local.stderr
blob: 37b78e337e7b1809af5685267098c1bb57428617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0381]: used binding `x` isn't initialized
  --> $DIR/uninit_local.rs:4:15
   |
LL |         let x: bool;
   |             - binding declared here but left uninitialized
LL |         while x {}
   |               ^ `x` used here but it isn't initialized
   |
help: consider assigning a value
   |
LL |         let x: bool = false;
   |                     +++++++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0381`.