Skip to content

Commit

Permalink
update tests for new error message
Browse files Browse the repository at this point in the history
  • Loading branch information
David Renshaw committed Jun 28, 2017
1 parent f3832c6 commit 5482110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/compile-fail/cast_fn_ptr_unsafe.rs
Expand Up @@ -2,7 +2,7 @@
fn main() {
fn f() {}

let g = f as fn() as unsafe fn(i32); //~ERROR: non-scalar cast: `fn()` as `unsafe fn(i32)`
let g = f as fn() as unsafe fn(i32); //~ERROR: non-primitive cast: `fn()` as `unsafe fn(i32)`

unsafe {
g(42);
Expand Down
2 changes: 1 addition & 1 deletion tests/compile-fail/cast_fn_ptr_unsafe2.rs
Expand Up @@ -2,7 +2,7 @@
fn main() {
fn f() {}

let g = f as fn() as fn(i32) as unsafe fn(i32); //~ERROR: non-scalar cast: `fn()` as `fn(i32)`
let g = f as fn() as fn(i32) as unsafe fn(i32); //~ERROR: non-primitive cast: `fn()` as `fn(i32)`

unsafe {
g(42);
Expand Down

0 comments on commit 5482110

Please sign in to comment.