2020-05-03 07:23:08 -05:00
|
|
|
error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
|
2020-04-29 03:00:22 -05:00
|
|
|
--> $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
|
2020-04-29 03:00:22 -05:00
|
|
|
--> $DIR/mutable_references.rs:26:8
|
2019-09-17 18:25:42 -05:00
|
|
|
|
|
2020-05-03 07:23:08 -05:00
|
|
|
LL | x: &UnsafeCell::new(42),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
help: skipping check for `const_mut_refs` feature
|
2020-04-29 03:00:22 -05:00
|
|
|
--> $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
|
|
|
| ^^^^^^^
|
2019-02-10 07:59:13 -06:00
|
|
|
|
2020-05-03 07:23:08 -05:00
|
|
|
error: aborting due to previous error; 1 warning emitted
|
2019-02-10 07:59:13 -06:00
|
|
|
|
2019-11-06 06:58:44 -06:00
|
|
|
For more information about this error, try `rustc --explain E0594`.
|