Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 18e8b4a

Browse files
committed
ices/76510.rs: fixed with errors
=== stdout === === stderr === error[E0601]: `main` function not found in crate `76510` --> /home/runner/work/glacier/glacier/ices/76510.rs:1:1 | 1 | / struct Dummy; 2 | | 3 | | impl Dummy { 4 | | const fn func(&mut self) -> usize { ... | 11 | | DUMMY.func() 12 | | }]; | |___^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/76510.rs` error[E0596]: cannot borrow data in a `&` reference as mutable --> /home/runner/work/glacier/glacier/ices/76510.rs:11:5 | 11 | DUMMY.func() | ^^^^^ cannot borrow as mutable error[E0658]: mutable references are not allowed in constant functions --> /home/runner/work/glacier/glacier/ices/76510.rs:4:19 | 4 | const fn func(&mut self) -> usize { | ^^^^^^^^^ | = note: see issue #57349 <rust-lang/rust#57349> for more information = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable error: aborting due to 3 previous errors Some errors have detailed explanations: E0596, E0601, E0658. For more information about an error, try `rustc --explain E0596`. ==============
1 parent 0775dea commit 18e8b4a

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed
File renamed without changes.

0 commit comments

Comments
 (0)