]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unevaluated_fixed_size_array_len.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / unevaluated_fixed_size_array_len.stderr
1 error[E0277]: the trait bound `[(); 0]: Foo` is not satisfied
2   --> $DIR/unevaluated_fixed_size_array_len.rs:22:5
3    |
4 LL |     <[(); 0] as Foo>::foo() //~ ERROR E0277
5    |     ^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `[(); 0]`
6    |
7    = help: the following implementations were found:
8              <[(); 1] as Foo>
9 note: required by `Foo::foo`
10   --> $DIR/unevaluated_fixed_size_array_len.rs:14:5
11    |
12 LL |     fn foo();
13    |     ^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.