]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/miri_unleashed/mutable_references.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / consts / miri_unleashed / mutable_references.stderr
index b870aca640a0aea7abe6ca8ba8da834961415a3b..e8a867307ce19d1f5cabd43c7de95d992ce618a6 100644 (file)
@@ -1,23 +1,35 @@
 warning: skipping const checks
-  --> $DIR/mutable_references.rs:30:10
+  --> $DIR/mutable_references.rs:8:26
    |
-LL |         *MEH.x.get() = 99;
-   |          ^^^^^
+LL | static FOO: &&mut u32 = &&mut 42;
+   |                          ^^^^^^^
 
 warning: skipping const checks
-  --> $DIR/mutable_references.rs:30:9
+  --> $DIR/mutable_references.rs:11:23
    |
-LL |         *MEH.x.get() = 99;
-   |         ^^^^^^^^^^^^^^^^^
+LL | static BAR: &mut () = &mut ();
+   |                       ^^^^^^^
 
 warning: skipping const checks
-  --> $DIR/mutable_references.rs:33:5
+  --> $DIR/mutable_references.rs:16:28
    |
-LL |     *OH_YES = 99;
-   |     ^^^^^^^^^^^^
+LL | static BOO: &mut Foo<()> = &mut Foo(());
+   |                            ^^^^^^^^^^^^
+
+warning: skipping const checks
+  --> $DIR/mutable_references.rs:26:8
+   |
+LL |     x: &UnsafeCell::new(42),
+   |        ^^^^^^^^^^^^^^^^^^^^
+
+warning: skipping const checks
+  --> $DIR/mutable_references.rs:30:27
+   |
+LL | static OH_YES: &mut i32 = &mut 42;
+   |                           ^^^^^^^
 
 error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
-  --> $DIR/mutable_references.rs:33:5
+  --> $DIR/mutable_references.rs:37:5
    |
 LL |     *OH_YES = 99;
    |     ^^^^^^^^^^^^ cannot assign