mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 02:24:35 +00:00
21 lines
394 B
Rust
21 lines
394 B
Rust
#![feature(associated_const_equality)]
|
|
|
|
pub enum Mode {
|
|
Cool,
|
|
}
|
|
|
|
pub trait Parse {
|
|
const MODE: Mode;
|
|
}
|
|
|
|
pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
|
|
//~^ ERROR expected constant, found type
|
|
//~| ERROR expected constant, found type
|
|
//~| ERROR expected constant, found type
|
|
//~| ERROR expected type
|
|
|
|
fn no_help() -> Mode::Cool {}
|
|
//~^ ERROR expected type, found variant
|
|
|
|
fn main() {}
|