]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/associated-const-in-trait.rs
Rollup merge of #89390 - tmandry:issue-72117, r=estebank
[rust.git] / src / test / ui / associated-consts / associated-const-in-trait.rs
1 // #29924
2
3 #![feature(associated_consts)]
4
5 trait Trait {
6     const N: usize;
7 }
8
9 impl dyn Trait {
10     //~^ ERROR the trait `Trait` cannot be made into an object [E0038]
11     const fn n() -> usize { Self::N }
12 }
13
14 fn main() {}