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