summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-item/issue-48027.rs
blob: d2b51184c999aa666aed784c9bb100eaecfff806 (plain)
1
2
3
4
5
6
7
8
trait Bar {
    const X: usize;
    fn return_n(&self) -> [u8; Bar::X]; //~ ERROR: E0790
}

impl dyn Bar {} //~ ERROR: the trait `Bar` cannot be made into an object

fn main() {}