Skip to content

Commit

Permalink
Rollup merge of rust-lang#58479 - saleemjaffer:test_promote_evaluatio…
Browse files Browse the repository at this point in the history
…n_unused_result, r=oli-obk

compile-pass test for rust-lang#53606

fixes rust-lang#53606
  • Loading branch information
kennytm committed Feb 16, 2019
2 parents 778f343 + 2c8e708 commit 07b9833
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/ui/consts/promote_evaluation_unused_result.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//compile-pass

#![feature(nll)]

fn main() {

let _: &'static usize = &(loop {}, 1).1;
}

0 comments on commit 07b9833

Please sign in to comment.