about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-10-28 06:00:19 +0000
committerbors <bors@rust-lang.org>2015-10-28 06:00:19 +0000
commit88fade54e163f899befc7d5ec09ce5f17fe57555 (patch)
treebaadcf9e6c04d2209f7cf1c36e97ea49e48286d5 /src/libstd/sys/unix/stack_overflow.rs
parent8974297b4a533cc6e04a1a6f0b32f2fe9e481d78 (diff)
parent2560646d9114c76b719fdf853864f5b8d9874f2b (diff)
downloadrust-88fade54e163f899befc7d5ec09ce5f17fe57555.tar.gz
rust-88fade54e163f899befc7d5ec09ce5f17fe57555.zip
Auto merge of #29398 - jonas-schievink:if-let-arms, r=arielb1
Closes #29314

The code from #29314:
```rust
fn main() {
    if let Some(b) = None {
        ()
    } else {
        1
    };
}
```
now prints this:
```
test.rs:2:5: 6:6 error: `if let` arms have incompatible types: expected `()`, found `_` (expected (), found integral variable) [E0308]
test.rs:2     if let Some(b) = None {
test.rs:3         ()
test.rs:4     } else {
test.rs:5         1
test.rs:6     };
test.rs:2:5: 6:6 help: run `rustc --explain E0308` to see a detailed explanation
test.rs:4:12: 6:6 note: `if let` arm with an incompatible type
test.rs:4     } else {
test.rs:5         1
test.rs:6     };
error: aborting due to previous error
```
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions