2019-10-14 10:47:14 +09:00
|
|
|
trait Bar {
|
|
|
|
|
const X: usize;
|
2022-06-12 17:46:57 +02:00
|
|
|
fn return_n(&self) -> [u8; Bar::X]; //~ ERROR: E0790
|
2019-10-14 10:47:14 +09:00
|
|
|
}
|
|
|
|
|
|
2024-11-20 14:19:36 -08:00
|
|
|
impl dyn Bar {} //~ ERROR: the trait `Bar` is not dyn compatible
|
2019-10-14 10:47:14 +09:00
|
|
|
|
|
|
|
|
fn main() {}
|