rust/tests/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
179 B
Rust
Raw Normal View History

2019-10-14 01:47:14 +00:00
trait Bar {
const X: usize;
fn return_n(&self) -> [u8; Bar::X]; //~ ERROR: E0790
2019-10-14 01:47:14 +00:00
}
impl dyn Bar {} //~ ERROR: the trait `Bar` cannot be made into an object
fn main() {}