Rollup merge of #58479 - saleemjaffer:test_promote_evaluation_unused_result, r=oli-obk
compile-pass test for #53606 fixes #53606
This commit is contained in:
commit
cfa6a702cf
8
src/test/ui/consts/promote_evaluation_unused_result.rs
Normal file
8
src/test/ui/consts/promote_evaluation_unused_result.rs
Normal file
@ -0,0 +1,8 @@
|
||||
//compile-pass
|
||||
|
||||
#![feature(nll)]
|
||||
|
||||
fn main() {
|
||||
|
||||
let _: &'static usize = &(loop {}, 1).1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user