We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d36d351 commit c2dfc25Copy full SHA for c2dfc25
src/libcore/mem/mod.rs
@@ -1009,6 +1009,8 @@ pub const fn discriminant<T>(v: &T) -> Discriminant<T> {
1009
/// # Examples
1010
///
1011
/// ```
1012
+/// # #![feature(never_type)]
1013
+///
1014
/// use std::mem;
1015
1016
/// enum Void {}
src/test/ui/consts/const-variant-count.rs
@@ -1,6 +1,7 @@
1
// run-pass
2
#![allow(dead_code)]
3
#![feature(variant_count)]
4
+#![feature(never_type)]
5
6
use std::mem::variant_count;
7
0 commit comments