]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-item/issue-48027.rs
Rollup merge of #106828 - notriddle:notriddle/notable-trait-docblock, r=GuillaumeGomez
[rust.git] / tests / 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() {}