]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unevaluated_fixed_size_array_len.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / test / ui / unevaluated_fixed_size_array_len.rs
1 // https://github.com/rust-lang/rust/issues/49208
2
3 trait Foo {
4     fn foo();
5 }
6
7 impl Foo for [(); 1] {
8     fn foo() {}
9 }
10
11 fn main() {
12     <[(); 0] as Foo>::foo() //~ ERROR E0277
13 }