Skip to content

Commit c2dfc25

Browse files
committed
Fix tests
1 parent d36d351 commit c2dfc25

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/libcore/mem/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,8 @@ pub const fn discriminant<T>(v: &T) -> Discriminant<T> {
10091009
/// # Examples
10101010
///
10111011
/// ```
1012+
/// # #![feature(never_type)]
1013+
///
10121014
/// use std::mem;
10131015
///
10141016
/// enum Void {}

src/test/ui/consts/const-variant-count.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// run-pass
22
#![allow(dead_code)]
33
#![feature(variant_count)]
4+
#![feature(never_type)]
45

56
use std::mem::variant_count;
67

0 commit comments

Comments
 (0)