diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-05-09 15:16:26 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-05-09 15:31:27 +0000 |
| commit | 0b6e493515d92d4b269eb07c05bf706b64fa5db8 (patch) | |
| tree | 150d99fec46ec65a1108e4bb01e0728600e2447d /tests/ui/return | |
| parent | e964ccafedcf7a505f90f31370d568e649286176 (diff) | |
| download | rust-0b6e493515d92d4b269eb07c05bf706b64fa5db8.tar.gz rust-0b6e493515d92d4b269eb07c05bf706b64fa5db8.zip | |
Merge typeck loop with static/const item eval loop
Diffstat (limited to 'tests/ui/return')
| -rw-r--r-- | tests/ui/return/dont-suggest-through-inner-const.stderr | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/return/dont-suggest-through-inner-const.stderr b/tests/ui/return/dont-suggest-through-inner-const.stderr index 6aeee74b0ad..fc98b737375 100644 --- a/tests/ui/return/dont-suggest-through-inner-const.stderr +++ b/tests/ui/return/dont-suggest-through-inner-const.stderr @@ -1,10 +1,4 @@ error[E0308]: mismatched types - --> $DIR/dont-suggest-through-inner-const.rs:4:9 - | -LL | 0 - | ^ expected `()`, found integer - -error[E0308]: mismatched types --> $DIR/dont-suggest-through-inner-const.rs:1:17 | LL | const fn f() -> usize { @@ -12,6 +6,12 @@ LL | const fn f() -> usize { | | | 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`. |
