2022-12-29 23:09:09 -06:00
|
|
|
#![feature(associated_const_equality)]
|
|
|
|
|
|
|
|
pub enum Mode {
|
|
|
|
Cool,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait Parse {
|
|
|
|
const MODE: Mode;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
|
2023-11-24 02:53:10 -06:00
|
|
|
//~^ ERROR expected type, found variant
|
|
|
|
//~| ERROR expected constant, found type
|
|
|
|
//~| ERROR expected constant, found type
|
2022-12-29 23:09:09 -06:00
|
|
|
|
|
|
|
fn no_help() -> Mode::Cool {}
|
|
|
|
//~^ ERROR expected type, found variant
|
|
|
|
|
|
|
|
fn main() {}
|