blob: 4d0aaf88e403b95856b29d988c1520e4d1ecdea3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#![feature(associated_const_equality)]
pub enum Mode {
Cool,
}
pub trait Parse {
const MODE: Mode;
}
pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
//~^ ERROR expected associated constant bound
//~| ERROR expected type
fn no_help() -> Mode::Cool {}
//~^ ERROR expected type, found variant
fn main() {}
|