fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
605 B17 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-37788.rs:8:5
3   |
4LL | fn main() {
5   |          - expected `()` because of default return type
6LL |     // Test that constructing the `visible_parent_map` (in `cstore_impl.rs`) does not ICE.
7LL |     std::cell::Cell::new(0)
8   |     ^^^^^^^^^^^^^^^^^^^^^^^- help: consider using a semicolon here: `;`
9   |     |
10   |     expected `()`, found `Cell<{integer}>`
11   |
12   = note: expected unit type `()`
13                 found struct `Cell<{integer}>`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0308`.