Skip to content

Commit e0551d7

Browse files
committed
clarify purposes of tests
1 parent f75a091 commit e0551d7

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

tests/ui/editions/never-type-fallback-breaking.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This is a test for various ways in which the change to the never type
2+
// fallback can break things and for the `dependency_on_unit_never_type_fallback`
3+
// lint.
4+
//
15
//@ revisions: e2021 e2024
26
//
37
//@[e2021] edition: 2021

tests/ui/never_type/exhaustive_patterns.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Check that we don't consider types which aren't publicly uninhabited as
2+
// uninhabited for purposes of pattern matching.
3+
//
14
//@ check-fail
25

36
#![feature(exhaustive_patterns, never_type)]

tests/ui/never_type/never-result.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Test that `!` can be coerced to multiple different types after getting it
2+
// from pattern matching.
3+
//
14
//@ run-pass
25

36
#![allow(unused_variables)]

tests/ui/never_type/never-type-rvalues.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Check that the never type can be used in various positions.
2+
//
13
//@ run-pass
24

35
#![feature(never_type)]

0 commit comments

Comments
 (0)