Skip to content

Commit

Permalink
let_chains: Test pretty output for simple stable if-let.
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed May 15, 2019
1 parent aaaae35 commit d5a1621
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/ui/rfc-2497-if-let-chains/ast-pretty-check.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// compile-pass
// compile-flags: -Z unpretty=expanded

fn main() {
if let 0 = 1 {}
}
10 changes: 10 additions & 0 deletions src/test/ui/rfc-2497-if-let-chains/ast-pretty-check.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#![feature(prelude_import)]
#![no_std]
#[prelude_import]
use ::std::prelude::v1::*;
#[macro_use]
extern crate std;
// compile-pass
// compile-flags: -Z unpretty=expanded

fn main() { if let 0 = 1 { } }

0 comments on commit d5a1621

Please sign in to comment.