]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/assoc_const_eq_diagnostic.rs
Rollup merge of #107114 - Erk-:add-absolute-note-to-path-join, r=m-ou-se
[rust.git] / tests / ui / const-generics / assoc_const_eq_diagnostic.rs
1 #![feature(associated_const_equality)]
2
3 pub enum Mode {
4     Cool,
5 }
6
7 pub trait Parse {
8     const MODE: Mode;
9 }
10
11 pub trait CoolStuff: Parse<MODE = Mode::Cool> {}
12 //~^ ERROR expected associated constant bound
13 //~| ERROR expected type
14
15 fn no_help() -> Mode::Cool {}
16 //~^ ERROR expected type, found variant
17
18 fn main() {}