explain purpose of test
This commit is contained in:
parent
818fa6e09c
commit
7ded8a9066
1 changed files with 6 additions and 0 deletions
|
|
@ -8,6 +8,12 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// Test that `for` loops don't introduce artificial
|
||||
// constraints on the type of the binding (`i`).
|
||||
// Subtle changes in the desugaring can cause the
|
||||
// type of elements in the vector to (incorrectly)
|
||||
// fallback to `!` or `()`.
|
||||
|
||||
fn main() {
|
||||
for i in Vec::new() { } //~ ERROR type annotations needed
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue