diff --git a/src/test/ui/consts/promote_evaluation_unused_result.rs b/src/test/ui/consts/promote_evaluation_unused_result.rs new file mode 100644 index 00000000000..d199e34775e --- /dev/null +++ b/src/test/ui/consts/promote_evaluation_unused_result.rs @@ -0,0 +1,8 @@ +//compile-pass + +#![feature(nll)] + +fn main() { + + let _: &'static usize = &(loop {}, 1).1; +}