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> {}
|
|
|
|
//~^ ERROR expected associated constant bound
|
2023-04-18 19:13:53 -05:00
|
|
|
//~| ERROR expected associated constant bound
|
2022-12-29 23:09:09 -06:00
|
|
|
//~| ERROR expected type
|
|
|
|
|
|
|
|
fn no_help() -> Mode::Cool {}
|
|
|
|
//~^ ERROR expected type, found variant
|
|
|
|
|
|
|
|
fn main() {}
|