]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-item/issue-48027.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[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() {}