]> git.lizzy.rs Git - rust.git/blob - src/test/ui/return/return-unit-from-diverging.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / return / return-unit-from-diverging.stderr
1 error[E0069]: `return;` in a function whose return type is not `()`
2   --> $DIR/return-unit-from-diverging.rs:15:5
3    |
4 LL |     return; //~ ERROR in a function whose return type is not
5    |     ^^^^^^ return type is not ()
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0069`.