remove type system tests
This commit is contained in:
parent
3554d1acdc
commit
ca7b088aba
2 changed files with 0 additions and 20 deletions
|
|
@ -1,10 +0,0 @@
|
|||
// just making sure that fn -> unsafe fn casts are handled by rustc so miri doesn't have to
|
||||
fn main() {
|
||||
fn f() {}
|
||||
|
||||
let g = f as fn() as unsafe fn(i32); //~ERROR: non-primitive cast: `fn()` as `unsafe fn(i32)`
|
||||
|
||||
unsafe {
|
||||
g(42);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
// just making sure that fn -> unsafe fn casts are handled by rustc so miri doesn't have to
|
||||
fn main() {
|
||||
fn f() {}
|
||||
|
||||
let g = f as fn() as fn(i32) as unsafe fn(i32); //~ERROR: non-primitive cast: `fn()` as `fn(i32)`
|
||||
|
||||
unsafe {
|
||||
g(42);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue