fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified 2 --> $DIR/warn.rs:7:5 3 | 4LL | async fn not_send(); 5 | ^^^^^ 6 | 7 = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` 8note: the lint level is defined here 9 --> $DIR/warn.rs:4:9 10 | 11LL | #![deny(async_fn_in_trait)] 12 | ^^^^^^^^^^^^^^^^^ 13help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send` 14 | 15LL - async fn not_send(); 16LL + fn not_send() -> impl std::future::Future<Output = ()> + Send; 17 | 18 19error: aborting due to previous error 20