]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-item/issue-48027.rs
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[rust.git] / src / test / ui / associated-item / issue-48027.rs
1 trait Bar {
2     const X: usize;
3     fn return_n(&self) -> [u8; Bar::X]; //~ ERROR: E0790
4 }
5
6 impl dyn Bar {} //~ ERROR: the trait `Bar` cannot be made into an object
7
8 fn main() {}