]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-6251.stderr
Auto merge of #94515 - estebank:tweak-move-error, r=davidtwco
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-6251.stderr
1 error[E0601]: `main` function not found in crate `ice_6251`
2   --> $DIR/ice-6251.rs:6:2
3    |
4 LL | }
5    |  ^ consider adding a `main` function to `$DIR/ice-6251.rs`
6
7 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
8   --> $DIR/ice-6251.rs:4:45
9    |
10 LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> {
11    |                                             ^ doesn't have a size known at compile-time
12    |
13    = help: the trait `std::marker::Sized` is not implemented for `[u8]`
14    = help: unsized fn params are gated as an unstable feature
15 help: function arguments must have a statically known size, borrowed types always have a known size
16    |
17 LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: &[u8]| x }]> {
18    |                                                +
19
20 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
21   --> $DIR/ice-6251.rs:4:54
22    |
23 LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> {
24    |                                                      ^ doesn't have a size known at compile-time
25    |
26    = help: the trait `std::marker::Sized` is not implemented for `[u8]`
27    = note: the return type of a function must have a statically known size
28
29 error[E0308]: mismatched types
30   --> $DIR/ice-6251.rs:4:44
31    |
32 LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> {
33    |                                            ^^^^^^^^^^^ expected `usize`, found closure
34    |
35    = note: expected type `usize`
36            found closure `[closure@$DIR/ice-6251.rs:4:44: 4:55]`
37
38 error: aborting due to 4 previous errors
39
40 Some errors have detailed explanations: E0277, E0308, E0601.
41 For more information about an error, try `rustc --explain E0277`.