]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unevaluated_fixed_size_array_len.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[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:12:5
3    |
4 LL |     <[(); 0] as Foo>::foo()
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:4: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`.