about summary refs log tree commit diff
path: root/tests/ui/closures/missing-body.stderr
blob: 33580fc2fbd2abf0c941b98ac92973e18f6282cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0121]: the placeholder `_` is not allowed within types on item signatures for closures
  --> $DIR/missing-body.rs:5:23
   |
LL | fn main() { |b: [str; _]| {}; }
   |                       ^ not allowed in type signatures

error[E0277]: the size for values of type `str` cannot be known at compilation time
  --> $DIR/missing-body.rs:5:17
   |
LL | fn main() { |b: [str; _]| {}; }
   |                 ^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `str`
   = note: slice and array elements must have `Sized` type

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0121, E0277.
For more information about an error, try `rustc --explain E0121`.