rust/tests/ui/unevaluated_fixed_size_array_len.rs
2023-01-11 09:32:08 +00:00

14 lines
180 B
Rust

// https://github.com/rust-lang/rust/issues/49208
trait Foo {
fn foo();
}
impl Foo for [(); 1] {
fn foo() {}
}
fn main() {
<[(); 0] as Foo>::foo() //~ ERROR E0277
}