2020-05-03 07:23:08 -05:00
|
|
|
error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/mutable_references.rs:35: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
|
|
|
|
|
2020-09-16 15:09:46 -05:00
|
|
|
help: skipping check that does not even have a feature gate
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/mutable_references.rs:8:26
|
2020-05-03 07:23:08 -05:00
|
|
|
|
|
|
|
|
LL | static FOO: &&mut u32 = &&mut 42;
|
|
|
|
| ^^^^^^^
|
2020-09-16 15:09:46 -05:00
|
|
|
help: skipping check that does not even have a feature gate
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/mutable_references.rs:12:23
|
2020-04-28 02:30:11 -05:00
|
|
|
|
|
|
|
|
LL | static BAR: &mut () = &mut ();
|
2020-05-03 07:23:08 -05:00
|
|
|
| ^^^^^^^
|
2020-09-16 15:09:46 -05:00
|
|
|
help: skipping check that does not even have a feature gate
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/mutable_references.rs:17: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
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/mutable_references.rs:25:8
|
2019-09-17 18:25:42 -05:00
|
|
|
|
|
2020-05-03 07:23:08 -05:00
|
|
|
LL | x: &UnsafeCell::new(42),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2020-09-16 15:09:46 -05:00
|
|
|
help: skipping check that does not even have a feature gate
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/mutable_references.rs:29: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`.
|