]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-15381.nll.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-15381.nll.stderr
1 error[E0005]: refutable pattern in `for` loop binding: `&[]` not covered
2   --> $DIR/issue-15381.rs:4:9
3    |
4 LL |     for &[x,y,z] in values.chunks(3).filter(|&xs| xs.len() == 3) {
5    |         ^^^^^^^^ pattern `&[]` not covered
6
7 error[E0381]: borrow of possibly uninitialized variable: `y`
8   --> $DIR/issue-15381.rs:6:26
9    |
10 LL |         println!("y={}", y);
11    |                          ^ use of possibly uninitialized `y`
12
13 error: aborting due to 2 previous errors
14
15 Some errors have detailed explanations: E0005, E0381.
16 For more information about an error, try `rustc --explain E0005`.