Skip to content

Commit cfa2a26

Browse files
committed
Use check-pass for never type tests
1 parent 6be7701 commit cfa2a26

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

src/test/ui/never_type/adjust_never.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Test that a variable of type ! can coerce to another type.
22

3-
// run-fail
4-
// error-pattern:explicit
3+
// check-pass
54

65
#![feature(never_type)]
76

src/test/ui/never_type/call-fn-never-arg.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Test that we can use a ! for an argument of type !
22

3-
// run-fail
4-
// error-pattern:wowzers!
3+
// check-pass
54

65
#![feature(never_type)]
76
#![allow(unreachable_code)]

src/test/ui/never_type/cast-never.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Test that we can explicitly cast ! to another type
22

3-
// run-fail
4-
// error-pattern:explicit
3+
// check-pass
54

65
#![feature(never_type)]
76

src/test/ui/never_type/never-associated-type.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Test that we can use ! as an associated type.
22

3-
// run-fail
4-
// error-pattern:kapow!
3+
// check-pass
54

65
#![feature(never_type)]
76

src/test/ui/never_type/never-type-arg.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Test that we can use ! as an argument to a trait impl.
22

3-
// run-fail
4-
// error-pattern:oh no!
3+
// check-pass
54

65
#![feature(never_type)]
76

0 commit comments

Comments
 (0)