about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-4201.stderr
AgeCommit message (Collapse)AuthorLines
2021-02-16Move some tests to more reasonable directoriesCaio-18/+0
2020-01-05Add backticks to various diagnosticsvarkor-1/+1
2019-11-18Surround types with backticks in type errorsEsteban Küber-1/+1
2019-11-18Remove E0308 note when primary label has all infoEsteban Küber-4/+0
2019-11-18review comments: tweak prefix stringsEsteban Küber-2/+2
2019-03-21Auto merge of #58981 - estebank:elseless-if, r=davidtwcobors-0/+3
Point at coercion reason for `if` expressions without else clause if caused by return type ``` error[E0317]: if may be missing an else clause --> $DIR/if-without-else-as-fn-expr.rs:2:5 | LL | fn foo(bar: usize) -> usize { | ----- found `usize` because of this return type LL | / if bar % 5 == 0 { LL | | return 3; LL | | } | |_____^ expected (), found usize | = note: expected type `()` found type `usize` = note: `if` expressions without `else` must evaluate to `()` ``` Fix #25228.
2019-03-11Update testsVadim Petrochenkov-4/+4
2019-03-07Add more details to elseless if errorEsteban Küber-0/+1
2019-03-07address review commentsEsteban Küber-1/+2
2019-03-07Point at coercion reason for if exprs without else clauseEsteban Küber-0/+1
``` error[E0317]: if may be missing an else clause --> $DIR/if-without-else-as-fn-expr.rs:2:5 | LL | fn foo(bar: usize) -> usize { | ----- found `usize` because of this return type LL | / if bar % 5 == 0 { LL | | return 3; LL | | } | |_____^ expected (), found usize | = note: expected type `()` found type `usize` = note: `if` expressions without `else` must evaluate to `()` ```
2018-12-31Improve type mismatch error messagesYuning Zhang-2/+2
Replace "integral variable" with "integer" and replace "floating-point variable" with "floating-point number" to make the message less confusing.
2018-12-25Remove licensesMark Rousskov-1/+1
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+19