mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
9 lines
179 B
Rust
9 lines
179 B
Rust
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() {}
|