summaryrefslogtreecommitdiffstats
path: root/tests/ui/never_type/issue-10176.stderr
blob: cd5361ffad3982110013dc95bff236bf3fcbb770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0308]: mismatched types
  --> $DIR/issue-10176.rs:2:5
   |
LL | fn f() -> isize {
   |           ----- expected `isize` because of return type
LL |     (return 1, return 2)
   |     ^^^^^^^^^^^^^^^^^^^^ expected `isize`, found tuple
   |
   = note: expected type `isize`
             found tuple `(!, !)`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.