Use check-pass for never type tests
This commit is contained in:
parent
6be770150b
commit
cfa2a2632a
5 changed files with 5 additions and 10 deletions
|
@ -1,7 +1,6 @@
|
|||
// Test that a variable of type ! can coerce to another type.
|
||||
|
||||
// run-fail
|
||||
// error-pattern:explicit
|
||||
// check-pass
|
||||
|
||||
#![feature(never_type)]
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// Test that we can use a ! for an argument of type !
|
||||
|
||||
// run-fail
|
||||
// error-pattern:wowzers!
|
||||
// check-pass
|
||||
|
||||
#![feature(never_type)]
|
||||
#![allow(unreachable_code)]
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// Test that we can explicitly cast ! to another type
|
||||
|
||||
// run-fail
|
||||
// error-pattern:explicit
|
||||
// check-pass
|
||||
|
||||
#![feature(never_type)]
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// Test that we can use ! as an associated type.
|
||||
|
||||
// run-fail
|
||||
// error-pattern:kapow!
|
||||
// check-pass
|
||||
|
||||
#![feature(never_type)]
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// Test that we can use ! as an argument to a trait impl.
|
||||
|
||||
// run-fail
|
||||
// error-pattern:oh no!
|
||||
// check-pass
|
||||
|
||||
#![feature(never_type)]
|
||||
|
||||
|
|
Loading…
Reference in a new issue