rust/src/test/ui/consts/miri_unleashed/mutable_references.stderr

38 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-05-03 07:23:08 -05:00
error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
--> $DIR/mutable_references.rs:36:5
2020-04-28 02:30:11 -05:00
|
2020-05-03 07:23:08 -05:00
LL | *OH_YES = 99;
| ^^^^^^^^^^^^ cannot assign
2020-04-28 02:30:11 -05:00
warning: skipping const checks
2020-05-03 07:23:08 -05:00
|
help: skipping check for `const_mut_refs` feature
--> $DIR/mutable_references.rs:9:26
|
LL | static FOO: &&mut u32 = &&mut 42;
| ^^^^^^^
help: skipping check for `const_mut_refs` feature
--> $DIR/mutable_references.rs:13:23
2020-04-28 02:30:11 -05:00
|
LL | static BAR: &mut () = &mut ();
2020-05-03 07:23:08 -05:00
| ^^^^^^^
help: skipping check for `const_mut_refs` feature
--> $DIR/mutable_references.rs:18:28
2020-04-28 02:30:11 -05:00
|
LL | static BOO: &mut Foo<()> = &mut Foo(());
2020-05-03 07:23:08 -05:00
| ^^^^^^^^^^^^
help: skipping check that does not even have a feature gate
--> $DIR/mutable_references.rs:26:8
|
2020-05-03 07:23:08 -05:00
LL | x: &UnsafeCell::new(42),
| ^^^^^^^^^^^^^^^^^^^^
help: skipping check for `const_mut_refs` feature
--> $DIR/mutable_references.rs:30:27
2020-04-28 02:30:11 -05:00
|
LL | static OH_YES: &mut i32 = &mut 42;
2020-05-03 07:23:08 -05:00
| ^^^^^^^
2020-05-03 07:23:08 -05:00
error: aborting due to previous error; 1 warning emitted
2019-11-06 06:58:44 -06:00
For more information about this error, try `rustc --explain E0594`.