]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-item/issue-48027.rs
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[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: type annotations needed
4 }
5
6 impl dyn Bar {} //~ ERROR: the trait `Bar` cannot be made into an object
7
8 fn main() {}