Skip to content

Commit 8c89905

Browse files
tests: Adopt unsupported ABI in weird type impl test
1 parent bcb95e4 commit 8c89905

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

tests/crashes/132430.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//@ compile-flags: --crate-type=lib
2+
//@ edition: 2018
3+
#![feature(abi_gpu_kernel)]
4+
struct Test;
5+
6+
impl Test {
7+
pub extern "gpu-kernel" fn test(val: &str) {}
8+
//~^ ERROR [E0570]
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0570]: `"gpu-kernel"` is not a supported ABI for the current target
2+
--> $DIR/unsupported-extern-abi-in-type-impl.rs:7:16
3+
|
4+
LL | pub extern "gpu-kernel" fn test(val: &str) {}
5+
| ^^^^^^^^^^^^
6+
7+
error: aborting due to 1 previous error
8+
9+
For more information about this error, try `rustc --explain E0570`.

0 commit comments

Comments
 (0)