rust/tests/ui/consts/miri_unleashed/mutable_references.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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
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
|
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;
| ^^^^^^^
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
| ^^^^^^^
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
|
2020-05-03 07:23:08 -05:00
LL | x: &UnsafeCell::new(42),
| ^^^^^^^^^^^^^^^^^^^^
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
| ^^^^^^^
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`.