mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 09:23:31 +00:00
12 lines
257 B
Rust
12 lines
257 B
Rust
//@ compile-flags: -Zunstable-options -Zoffload=Device -Clto=fat
|
|
|
|
#![feature(gpu_offload)]
|
|
|
|
fn main() {
|
|
// args_ty is not a tuple
|
|
core::offload::offload! { kernel = kernel_0, args = 42 }
|
|
//~^ ERROR `{integer}` is not a tuple
|
|
}
|
|
|
|
fn kernel_0() {}
|