1 error[E0277]: `()` doesn't implement `std::fmt::Display`
2 --> $DIR/binding-assigned-block-without-tail-expression.rs:14:20
5 | - help: remove this semicolon
7 LL | println!("{}", x);
8 | ^ `()` cannot be formatted with the default formatter
10 = help: the trait `std::fmt::Display` is not implemented for `()`
11 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
12 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
14 error[E0277]: `()` doesn't implement `std::fmt::Display`
15 --> $DIR/binding-assigned-block-without-tail-expression.rs:15:20
18 | -- this empty block is missing a tail expression
20 LL | println!("{}", y);
21 | ^ `()` cannot be formatted with the default formatter
23 = help: the trait `std::fmt::Display` is not implemented for `()`
24 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
25 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
27 error[E0277]: `()` doesn't implement `std::fmt::Display`
28 --> $DIR/binding-assigned-block-without-tail-expression.rs:16:20
31 | - help: remove this semicolon
33 LL | println!("{}", z);
34 | ^ `()` cannot be formatted with the default formatter
36 = help: the trait `std::fmt::Display` is not implemented for `()`
37 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
38 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
40 error[E0277]: `()` doesn't implement `std::fmt::Display`
41 --> $DIR/binding-assigned-block-without-tail-expression.rs:17:20
47 | |_____- this block is missing a tail expression
49 LL | println!("{}", s);
50 | ^ `()` cannot be formatted with the default formatter
52 = help: the trait `std::fmt::Display` is not implemented for `()`
53 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
54 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
56 error[E0308]: mismatched types
57 --> $DIR/binding-assigned-block-without-tail-expression.rs:18:18
60 | - help: remove this semicolon
63 | --- ^ expected `i32`, found `()`
65 | expected due to this
67 error[E0308]: mismatched types
68 --> $DIR/binding-assigned-block-without-tail-expression.rs:19:18
71 | -- this empty block is missing a tail expression
74 | --- ^ expected `i32`, found `()`
76 | expected due to this
78 error[E0308]: mismatched types
79 --> $DIR/binding-assigned-block-without-tail-expression.rs:20:18
85 | |_____- this block is missing a tail expression
88 | --- ^ expected `i32`, found `()`
90 | expected due to this
92 error[E0308]: mismatched types
93 --> $DIR/binding-assigned-block-without-tail-expression.rs:21:18
99 | |_____- this block is missing a tail expression
102 | --- ^ expected `i32`, found `()`
104 | expected due to this
106 error: aborting due to 8 previous errors
108 Some errors have detailed explanations: E0277, E0308.
109 For more information about an error, try `rustc --explain E0277`.