]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/issue-37788.stderr
Rollup merge of #106816 - TimNN:rental-remap, r=oli-obj
[rust.git] / tests / ui / proc-macro / issue-37788.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-37788.rs:8:5
3    |
4 LL | fn main() {
5    |           - expected `()` because of default return type
6 LL |     // Test that constructing the `visible_parent_map` (in `cstore_impl.rs`) does not ICE.
7 LL |     std::cell::Cell::new(0)
8    |     ^^^^^^^^^^^^^^^^^^^^^^^- help: consider using a semicolon here: `;`
9    |     |
10    |     expected `()`, found struct `Cell`
11    |
12    = note: expected unit type `()`
13                  found struct `Cell<{integer}>`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.