diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-02-23 03:42:32 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-02-26 20:24:02 +0300 |
| commit | fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4 (patch) | |
| tree | 1eb1a49b4750e2704d3d724fb4a12ea4e2237eff /src/test/ui/suggestions/str-array-assignment.stderr | |
| parent | cdbd8c2f2aa69c4b8fe6f004449440e87c4ab87e (diff) | |
| download | rust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.tar.gz rust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.zip | |
Update UI tests
Diffstat (limited to 'src/test/ui/suggestions/str-array-assignment.stderr')
| -rw-r--r-- | src/test/ui/suggestions/str-array-assignment.stderr | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/ui/suggestions/str-array-assignment.stderr b/src/test/ui/suggestions/str-array-assignment.stderr index 084ddfd1e2e..352954597b1 100644 --- a/src/test/ui/suggestions/str-array-assignment.stderr +++ b/src/test/ui/suggestions/str-array-assignment.stderr @@ -1,7 +1,7 @@ error[E0308]: if and else have incompatible types --> $DIR/str-array-assignment.rs:13:11 | -13 | let t = if true { s[..2] } else { s }; +LL | let t = if true { s[..2] } else { s }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected str, found &str | = note: expected type `str` @@ -10,10 +10,10 @@ error[E0308]: if and else have incompatible types error[E0308]: mismatched types --> $DIR/str-array-assignment.rs:15:27 | -11 | fn main() { +LL | fn main() { | - expected `()` because of default return type ... -15 | let u: &str = if true { s[..2] } else { s }; +LL | let u: &str = if true { s[..2] } else { s }; | ^^^^^^ expected &str, found str | = note: expected type `&str` @@ -22,7 +22,7 @@ error[E0308]: mismatched types error[E0277]: the trait bound `str: std::marker::Sized` is not satisfied --> $DIR/str-array-assignment.rs:17:7 | -17 | let v = s[..2]; +LL | let v = s[..2]; | ^ ------ help: consider borrowing here: `&s[..2]` | | | `str` does not have a constant size known at compile-time @@ -33,7 +33,7 @@ error[E0277]: the trait bound `str: std::marker::Sized` is not satisfied error[E0308]: mismatched types --> $DIR/str-array-assignment.rs:19:17 | -19 | let w: &str = s[..2]; +LL | let w: &str = s[..2]; | ^^^^^^ | | | expected &str, found str |
