Fix coerce-to-bang test

This was explicitly testing the behaviour which is now no longer permitted.
This commit is contained in:
varkor 2018-05-01 00:23:34 +01:00
parent 9b2890196e
commit 5a013b2fbc

View file

@ -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() {