Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d5a1621

Browse files
committedMay 15, 2019
let_chains: Test pretty output for simple stable if-let.
1 parent aaaae35 commit d5a1621

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// compile-pass
2+
// compile-flags: -Z unpretty=expanded
3+
4+
fn main() {
5+
if let 0 = 1 {}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#![feature(prelude_import)]
2+
#![no_std]
3+
#[prelude_import]
4+
use ::std::prelude::v1::*;
5+
#[macro_use]
6+
extern crate std;
7+
// compile-pass
8+
// compile-flags: -Z unpretty=expanded
9+
10+
fn main() { if let 0 = 1 { } }

0 commit comments

Comments
 (0)
Please sign in to comment.