]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const-eval/ref_to_int_match.32bit.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / ref_to_int_match.32bit.stderr
index ff90bb5fdd2423dbf0e866abdec69236bd5b7962..aa5ba53fb1bda5db6167a5f147832e1a5c44a22a 100644 (file)
@@ -1,5 +1,5 @@
 error[E0080]: it is undefined behavior to use this value
-  --> $DIR/ref_to_int_match.rs:26:1
+  --> $DIR/ref_to_int_match.rs:25:1
    |
 LL | const BAR: Int = unsafe { Foo { r: &42 }.f };
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered pointer to alloc3, but expected initialized plain (non-pointer) bytes
@@ -10,13 +10,13 @@ LL | const BAR: Int = unsafe { Foo { r: &42 }.f };
            }
 
 error: could not evaluate constant pattern
-  --> $DIR/ref_to_int_match.rs:8:14
+  --> $DIR/ref_to_int_match.rs:7:14
    |
 LL |         10..=BAR => {},
    |              ^^^
 
 error: could not evaluate constant pattern
-  --> $DIR/ref_to_int_match.rs:8:14
+  --> $DIR/ref_to_int_match.rs:7:14
    |
 LL |         10..=BAR => {},
    |              ^^^