mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +00:00
20 lines
363 B
Rust
20 lines
363 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 associated constant bound
|
|
//~| ERROR expected associated constant bound
|
|
//~| ERROR expected type
|
|
|
|
fn no_help() -> Mode::Cool {}
|
|
//~^ ERROR expected type, found variant
|
|
|
|
fn main() {}
|