mirror of
https://git.proxmox.com/git/rustc
synced 2025-06-04 01:07:33 +00:00
19 lines
317 B
Rust
19 lines
317 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 type
|
|
|
|
fn no_help() -> Mode::Cool {}
|
|
//~^ ERROR expected type, found variant
|
|
|
|
fn main() {}
|