1 error[E0308]: mismatched types
2 --> $DIR/assignment-expected-bool.rs:6:19
4 LL | let _: bool = 0 = 0;
7 | expected bool, found ()
8 | help: try comparing for equality: `0 == 0`
10 error[E0308]: mismatched types
11 --> $DIR/assignment-expected-bool.rs:9:14
16 | expected bool, found ()
17 | help: try comparing for equality: `0 == 0`
19 error[E0308]: mismatched types
20 --> $DIR/assignment-expected-bool.rs:10:14
25 | expected bool, found ()
26 | help: try comparing for equality: `0 == 0`
28 error[E0308]: mismatched types
29 --> $DIR/assignment-expected-bool.rs:14:17
34 | expected bool, found ()
35 | help: try comparing for equality: `0 == 0`
37 error[E0308]: mismatched types
38 --> $DIR/assignment-expected-bool.rs:18:8
43 | expected bool, found ()
44 | help: try comparing for equality: `0 == 0`
46 error[E0308]: mismatched types
47 --> $DIR/assignment-expected-bool.rs:20:24
49 LL | let _: bool = if { 0 = 0 } {
52 | expected bool, found ()
53 | help: try comparing for equality: `0 == 0`
55 error[E0308]: mismatched types
56 --> $DIR/assignment-expected-bool.rs:21:9
61 | expected bool, found ()
62 | help: try comparing for equality: `0 == 0`
64 error[E0308]: mismatched types
65 --> $DIR/assignment-expected-bool.rs:23:9
70 | expected bool, found ()
71 | help: try comparing for equality: `0 == 0`
73 error[E0308]: mismatched types
74 --> $DIR/assignment-expected-bool.rs:26:13
79 | expected bool, found ()
80 | help: try comparing for equality: `0 == 0`
82 error[E0308]: mismatched types
83 --> $DIR/assignment-expected-bool.rs:27:14
88 | expected bool, found ()
89 | help: try comparing for equality: `0 == 0`
91 error[E0308]: mismatched types
92 --> $DIR/assignment-expected-bool.rs:28:12
97 | expected bool, found ()
98 | help: try comparing for equality: `0 == 0`
100 error[E0070]: invalid left-hand side expression
101 --> $DIR/assignment-expected-bool.rs:31:20
103 LL | let _: usize = 0 = 0;
104 | ^^^^^ left-hand of expression not valid
106 error[E0308]: mismatched types
107 --> $DIR/assignment-expected-bool.rs:31:20
109 LL | let _: usize = 0 = 0;
110 | ^^^^^ expected usize, found ()
112 error: aborting due to 13 previous errors
114 Some errors have detailed explanations: E0070, E0308.
115 For more information about an error, try `rustc --explain E0070`.