os-rust/src/test/ui/associated-item/issue-48027.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
197 B
Rust
Raw Normal View History

2019-10-14 10:47:14 +09:00
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() {}