Skip to content

Commit 0e56bff

Browse files
committed
erroneous_const span now changes with inlining
1 parent d38e861 commit 0e56bff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/compile-fail/erroneous_const.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! Make sure we detect erroneous constants post-monomorphization even when they are unused.
22
//! (https://github.com/rust-lang/miri/issues/1382)
3+
// Inlining changes the error location
4+
// compile-flags: -Zmir-opt-level=0
35
#![feature(const_panic)]
46
#![feature(never_type)]
57
#![warn(warnings, const_err)]

0 commit comments

Comments
 (0)