summaryrefslogtreecommitdiffstats
path: root/tests/ui/never_type/issue-10176.stderr
blob: 3f381b9aea9b297041752e725be6b25e196ee9c7 (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 `(!, !)`
   |
   = note: expected type `isize`
             found tuple `(!, !)`

error: aborting due to previous error

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