about summary refs log tree commit diff
path: root/tests/ui/return/dont-suggest-through-inner-const.stderr
blob: fc98b7373754e67cb2997cb9011f19052aee2ec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0308]: mismatched types
  --> $DIR/dont-suggest-through-inner-const.rs:1:17
   |
LL | const fn f() -> usize {
   |          -      ^^^^^ expected `usize`, found `()`
   |          |
   |          implicitly returns `()` as its body has no tail or `return` expression

error[E0308]: mismatched types
  --> $DIR/dont-suggest-through-inner-const.rs:4:9
   |
LL |         0
   |         ^ expected `()`, found integer

error: aborting due to 2 previous errors

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