about summary refs log tree commit diff
path: root/tests/ui/associated-item/issue-48027.rs
blob: 715f3935107b4b8cdb30d6583347341b3a93ca8b (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` is not dyn compatible

fn main() {}