blob: 4760ca5482a0791086a167834ca914c1b23305bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#![feature(discriminant_kind)]
use std::marker::DiscriminantKind;
enum Uninhabited {}
struct NewType;
impl DiscriminantKind for NewType {
//~^ ERROR explicit impls for the `DiscriminantKind` trait are not permitted
type Discriminant = Uninhabited;
}
fn main() {}
|