We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b28901 commit 5a013b2Copy full SHA for 5a013b2
src/test/compile-fail/coerce-to-bang.rs
@@ -56,9 +56,8 @@ fn call_foo_f() {
56
}
57
58
fn array_a() {
59
- // Accepted: return is coerced to `!` just fine, and then `22` can be
60
- // because we already diverged.
61
- let x: [!; 2] = [return, 22];
+ // Accepted: return is coerced to `!` just fine, but `22` cannot be.
+ let x: [!; 2] = [return, 22]; //~ ERROR mismatched types
62
63
64
fn array_b() {
0 commit comments