Files
rust/tests/ui/offload/non_tuple_args.rs
2026-07-29 20:57:29 +03:00

12 lines
282 B
Rust

//@ compile-flags: -Zunstable-options -Zoffload=Device -Clto=fat
#![feature(core_intrinsics)]
fn main() {
// args_ty is not a tuple
core::intrinsics::offload::<_, _, ()>(kernel_0, [1, 1, 1], [1, 1, 1], 0, 42);
//~^ ERROR `{integer}` is not a tuple
}
fn kernel_0() {}