about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-11-20 23:10:52 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-12-04 20:29:36 +0000
commitda58406c73524054e9915aee4aa44d415868be6b (patch)
tree0336677f824c4e645e30872fab576be510dbb005
parentd136b3108def7af6d43229ba704ab21778f55125 (diff)
downloadrust-da58406c73524054e9915aee4aa44d415868be6b.tar.gz
rust-da58406c73524054e9915aee4aa44d415868be6b.zip
fix test
-rw-r--r--tests/ui/consts/const-eval/ref_to_int_match.32bit.stderr8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/ui/consts/const-eval/ref_to_int_match.32bit.stderr b/tests/ui/consts/const-eval/ref_to_int_match.32bit.stderr
index 8175fe6016a..18935626af1 100644
--- a/tests/ui/consts/const-eval/ref_to_int_match.32bit.stderr
+++ b/tests/ui/consts/const-eval/ref_to_int_match.32bit.stderr
@@ -7,12 +7,6 @@ LL | const BAR: Int = unsafe { Foo { r: &42 }.f };
    = help: this code performed an operation that depends on the underlying bytes representing a pointer
    = help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
 
-error: could not evaluate constant pattern
-  --> $DIR/ref_to_int_match.rs:7:14
-   |
-LL |         10..=BAR => {},
-   |              ^^^
-
-error: aborting due to 2 previous errors
+error: aborting due to 1 previous error
 
 For more information about this error, try `rustc --explain E0080`.