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-10-31 08:45:26 -05:00
|
|
|
//~^ ERROR expected constant, found type
|
2023-11-24 02:53:10 -06:00
|
|
|
//~| ERROR expected constant, found type
|
|
|
|
//~| ERROR expected constant, found type
|
2023-10-31 08:45:26 -05:00
|
|
|
//~| ERROR expected type
|
2022-12-29 23:09:09 -06:00
|
|
|
|
|
|
|
fn no_help() -> Mode::Cool {}
|
|
|
|
//~^ ERROR expected type, found variant
|
|
|
|
|
|
|
|
fn main() {}
|