rust/tests/ui/traits/new-solver/int-var-is-send.rs

9 lines
118 B
Rust

// compile-flags: -Ztrait-solver=next
// check-pass
fn needs_send(_: impl Send) {}
fn main() {
needs_send(1);
}