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

Commit 083a289

Browse files
committed
ices/96258.rs: fixed with errors
=== stdout === === stderr === error: this file contains an unclosed delimiter --> /home/runner/work/glacier/glacier/ices/96258.rs:4:29 | 2 | impl Numberer { | - unclosed delimiter 3 | pub(crate) async fn new( | - unclosed delimiter 4 | interval: Duration, | ^ error: expected one of `->`, `where`, or `{`, found `}` --> /home/runner/work/glacier/glacier/ices/96258.rs:4:29 | 3 | pub(crate) async fn new( | --- while parsing this `fn` 4 | interval: Duration, | ^ expected one of `->`, `where`, or `{` error: associated function in `impl` without body --> /home/runner/work/glacier/glacier/ices/96258.rs:3:5 | 3 | / pub(crate) async fn new( 4 | | interval: Duration, | | ^- help: provide a definition for the function: `{ <body> }` | |____________________________| | error[E0412]: cannot find type `Numberer` in this scope --> /home/runner/work/glacier/glacier/ices/96258.rs:2:6 | 2 | impl Numberer { | ^^^^^^^^ not found in this scope error[E0412]: cannot find type `Duration` in this scope --> /home/runner/work/glacier/glacier/ices/96258.rs:4:19 | 4 | interval: Duration, | ^^^^^^^^ not found in this scope | help: consider importing one of these items | 2 | use core::time::Duration; | 2 | use std::time::Duration; | warning: changes to closure capture in Rust 2021 will affect drop order --> /home/runner/work/glacier/glacier/ices/96258.rs:3:5 | 3 | / pub(crate) async fn new( 4 | | interval: Duration, | | -------- ^ in Rust 2018, `interval` is dropped here along with the closure, but in Rust 2021 `interval` is not part of the closure | |_________|__________________| | | | in Rust 2018, this causes the closure to capture `interval`, but in Rust 2021, it has no effect | note: the lint level is defined here --> /home/runner/work/glacier/glacier/ices/96258.rs:1:9 | 1 | #![warn(rust_2021_incompatible_closure_captures)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/disjoint-capture-in-closures.html> help: add a dummy let to cause `interval` to be fully captured | 3 ~ { let _ = &interval; pub(crate) async fn new( 4 ~ interval: Duration, } | error: aborting due to 5 previous errors; 1 warning emitted For more information about this error, try `rustc --explain E0412`. ==============
1 parent 04c7af3 commit 083a289

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)