mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
remove type system tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user