X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fborrowck%2Fborrowck-while-cond.rs;h=62a9bdd2020559817e7e6bf8c2fca085cfcd7d9c;hb=86b8dd5389cd9d545418a60902222a4ba859365f;hp=b3ec20711c12b32ad05433b0dc8ce99e7fcf18c7;hpb=505aa48f24abb36c07bea7f8d4de321de193cc41;p=rust.git diff --git a/src/test/ui/borrowck/borrowck-while-cond.rs b/src/test/ui/borrowck/borrowck-while-cond.rs index b3ec20711c1..62a9bdd2020 100644 --- a/src/test/ui/borrowck/borrowck-while-cond.rs +++ b/src/test/ui/borrowck/borrowck-while-cond.rs @@ -1,4 +1,4 @@ fn main() { let x: bool; - while x { } //~ ERROR use of possibly-uninitialized variable: `x` + while x { } //~ ERROR E0381 }