blob: c9b4ccd3e8a999a44fa4a2bd7d662e56b592cf48 [file] [log] [blame]
trait Bar {
const X: usize;
fn return_n(&self) -> [u8; Bar::X]; //~ ERROR: type annotations needed
}
impl dyn Bar {} //~ ERROR: the trait `Bar` cannot be made into an object
fn main() {}