Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
29
tests/ui/for-loop-while/break-while-condition.rs
Normal file
29
tests/ui/for-loop-while/break-while-condition.rs
Normal file
|
@ -0,0 +1,29 @@
|
|||
#![feature(never_type)]
|
||||
|
||||
fn main() {
|
||||
// The `if false` expressions are simply to
|
||||
// make sure we don't avoid checking everything
|
||||
// simply because a few expressions are unreachable.
|
||||
|
||||
if false {
|
||||
let _: ! = { //~ ERROR mismatched types
|
||||
'a: while break 'a {};
|
||||
};
|
||||
}
|
||||
|
||||
if false {
|
||||
let _: ! = {
|
||||
while false { //~ ERROR mismatched types
|
||||
break
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
if false {
|
||||
let _: ! = {
|
||||
while false { //~ ERROR mismatched types
|
||||
return
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue