Fix coerce-to-bang test
This was explicitly testing the behaviour which is now no longer permitted.
This commit is contained in:
parent
9b2890196e
commit
5a013b2fbc
1 changed files with 2 additions and 3 deletions
|
@ -56,9 +56,8 @@ fn call_foo_f() {
|
|||
}
|
||||
|
||||
fn array_a() {
|
||||
// Accepted: return is coerced to `!` just fine, and then `22` can be
|
||||
// because we already diverged.
|
||||
let x: [!; 2] = [return, 22];
|
||||
// Accepted: return is coerced to `!` just fine, but `22` cannot be.
|
||||
let x: [!; 2] = [return, 22]; //~ ERROR mismatched types
|
||||
}
|
||||
|
||||
fn array_b() {
|
||||
|
|
Loading…
Add table
Reference in a new issue