]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-15381.stderr
Rollup merge of #60186 - estebank:accept-suffix, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-15381.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 warning[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    = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
14    = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
15
16 error: aborting due to previous error
17
18 Some errors have detailed explanations: E0005, E0381.
19 For more information about an error, try `rustc --explain E0005`.