]> git.lizzy.rs Git - rust.git/blob - src/test/ui/diverging-tuple-parts-39485.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / diverging-tuple-parts-39485.stderr
1 error[E0308]: mismatched types
2   --> $DIR/diverging-tuple-parts-39485.rs:18:5
3    |
4 LL | fn g() {
5    |        - help: try adding a return type: `-> &_`
6 LL |     &panic!() //~ ERROR mismatched types
7    |     ^^^^^^^^^ expected (), found reference
8    |
9    = note: expected type `()`
10               found type `&_`
11
12 error[E0308]: mismatched types
13   --> $DIR/diverging-tuple-parts-39485.rs:22:5
14    |
15 LL | fn f() -> isize {
16    |           ----- expected `isize` because of return type
17 LL |     (return 1, return 2) //~ ERROR mismatched types
18    |     ^^^^^^^^^^^^^^^^^^^^ expected isize, found tuple
19    |
20    = note: expected type `isize`
21               found type `(!, !)`
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0308`.