Skip to content

Commit ca0af9e

Browse files
oli-obkRalfJung
authored andcommitted
guaranteed non guarantee
Co-authored-by: Ralf Jung <[email protected]>
1 parent e1a855c commit ca0af9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ui/consts/is_val_statically_known.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const CONST_TEST: bool = unsafe { is_val_statically_known(0) };
99

1010
fn main() {
1111
if CONST_TEST {
12-
unreachable!("guaranteed to return false during const eval");
12+
unreachable!("currently expected to return false during const eval");
13+
// but note that this is not a guarantee!
1314
}
1415
}

0 commit comments

Comments
 (0)