2023-06-24 20:49:38 -05:00
|
|
|
#![warn(rust_2021_incompatible_closure_captures)]
|
2022-06-28 15:46:15 -05:00
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
pub(crate) struct Numberer {}
|
|
|
|
|
|
|
|
impl Numberer {
|
|
|
|
pub(crate) async fn new(
|
|
|
|
//~^ ERROR `async fn` is not permitted in Rust 2015
|
|
|
|
interval: Duration,
|
|
|
|
//~^ ERROR cannot find type `Duration` in this scope
|
2024-01-24 11:18:08 -06:00
|
|
|
) -> Numberer {
|
2022-06-28 15:46:15 -05:00
|
|
|
Numberer {}
|
|
|
|
}
|
|
|
|
}
|