diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-while-cond.stderr')
-rw-r--r-- | src/test/ui/borrowck/borrowck-while-cond.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/borrowck/borrowck-while-cond.stderr b/src/test/ui/borrowck/borrowck-while-cond.stderr new file mode 100644 index 000000000..e41c1c55e --- /dev/null +++ b/src/test/ui/borrowck/borrowck-while-cond.stderr @@ -0,0 +1,11 @@ +error[E0381]: used binding `x` isn't initialized + --> $DIR/borrowck-while-cond.rs:3:11 + | +LL | let x: bool; + | - binding declared here but left uninitialized +LL | while x { } + | ^ `x` used here but it isn't initialized + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0381`. |