rust-clippy/tests/ui/crashes/ice-5207.rs

9 lines
260 B
Rust
Raw Normal View History

// compile-flags: --cap-lints=warn
// ^ for https://github.com/rust-lang/rust-clippy/issues/10645
2020-02-21 07:24:58 +00:00
// Regression test for https://github.com/rust-lang/rust-clippy/issues/5207
#![warn(clippy::future_not_send)]
2020-02-21 07:24:58 +00:00
pub async fn bar<'a, T: 'a>(_: T) {}
fn main() {}