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