Update UI tests
This commit is contained in:
parent
cdbd8c2f2a
commit
fa2d9fc4b9
1200 changed files with 6168 additions and 6168 deletions
|
@ -1,7 +1,7 @@
|
|||
error[E0308]: mismatched types
|
||||
--> $DIR/const.rs:26:9
|
||||
|
|
||||
26 | FOO => {}, //~ ERROR mismatched types
|
||||
LL | FOO => {}, //~ ERROR mismatched types
|
||||
| ^^^ expected &Foo, found struct `Foo`
|
||||
|
|
||||
= note: expected type `&Foo`
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
error[E0594]: cannot assign to immutable borrowed content `*x`
|
||||
--> $DIR/enum.rs:21:5
|
||||
|
|
||||
20 | let Wrap(x) = &Wrap(3);
|
||||
LL | let Wrap(x) = &Wrap(3);
|
||||
| - consider changing this to `x`
|
||||
21 | *x += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*x`
|
||||
--> $DIR/enum.rs:25:9
|
||||
|
|
||||
24 | if let Some(x) = &Some(3) {
|
||||
LL | if let Some(x) = &Some(3) {
|
||||
| - consider changing this to `x`
|
||||
25 | *x += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*x`
|
||||
--> $DIR/enum.rs:31:9
|
||||
|
|
||||
30 | while let Some(x) = &Some(3) {
|
||||
LL | while let Some(x) = &Some(3) {
|
||||
| - consider changing this to `x`
|
||||
31 | *x += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
error[E0594]: cannot assign to immutable borrowed content `*n`
|
||||
--> $DIR/explicit-mut.rs:19:13
|
||||
|
|
||||
18 | Some(n) => {
|
||||
LL | Some(n) => {
|
||||
| - consider changing this to `n`
|
||||
19 | *n += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*n`
|
||||
--> $DIR/explicit-mut.rs:27:13
|
||||
|
|
||||
26 | Some(n) => {
|
||||
LL | Some(n) => {
|
||||
| - consider changing this to `n`
|
||||
27 | *n += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*n`
|
||||
--> $DIR/explicit-mut.rs:35:13
|
||||
|
|
||||
34 | Some(n) => {
|
||||
LL | Some(n) => {
|
||||
| - consider changing this to `n`
|
||||
35 | *n += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error[E0009]: cannot bind by-move and by-ref in the same pattern
|
||||
--> $DIR/for.rs:18:13
|
||||
|
|
||||
18 | for (n, mut m) in &tups {
|
||||
LL | for (n, mut m) in &tups {
|
||||
| - ^^^^^ by-move pattern here
|
||||
| |
|
||||
| both by-ref and by-move used
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error[E0409]: variable `x` is bound in inconsistent ways within the same match arm
|
||||
--> $DIR/issue-44912-or.rs:18:35
|
||||
|
|
||||
18 | Some((x, 3)) | &Some((ref x, 5)) => x,
|
||||
LL | Some((x, 3)) | &Some((ref x, 5)) => x,
|
||||
| - first binding ^ bound in different ways
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error[E0308]: mismatched types
|
||||
--> $DIR/lit.rs:19:13
|
||||
|
|
||||
19 | "abc" => true, //~ ERROR mismatched types
|
||||
LL | "abc" => true, //~ ERROR mismatched types
|
||||
| ^^^^^ expected &str, found str
|
||||
|
|
||||
= note: expected type `&&str`
|
||||
|
@ -10,7 +10,7 @@ error[E0308]: mismatched types
|
|||
error[E0308]: mismatched types
|
||||
--> $DIR/lit.rs:28:9
|
||||
|
|
||||
28 | b"abc" => true, //~ ERROR mismatched types
|
||||
LL | b"abc" => true, //~ ERROR mismatched types
|
||||
| ^^^^^^ expected &[u8], found array of 3 elements
|
||||
|
|
||||
= note: expected type `&&[u8]`
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error[E0599]: no associated item named `XXX` found for type `u32` in the current scope
|
||||
--> $DIR/no-double-error.rs:18:9
|
||||
|
|
||||
18 | u32::XXX => { } //~ ERROR no associated item named
|
||||
LL | u32::XXX => { } //~ ERROR no associated item named
|
||||
| ^^^^^^^^ associated item not found in `u32`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error[E0004]: non-exhaustive patterns: `&[]` not covered
|
||||
--> $DIR/slice.rs:17:11
|
||||
|
|
||||
17 | match sl { //~ ERROR non-exhaustive patterns
|
||||
LL | match sl { //~ ERROR non-exhaustive patterns
|
||||
| ^^ pattern `&[]` not covered
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
|
||||
--> $DIR/suggestion.rs:12:12
|
||||
|
|
||||
12 | if let Some(y) = &Some(22) { //~ ERROR non-reference pattern
|
||||
LL | if let Some(y) = &Some(22) { //~ ERROR non-reference pattern
|
||||
| ^^^^^^^ help: consider using a reference: `&Some(y)`
|
||||
|
|
||||
= help: add #![feature(match_default_bindings)] to the crate attributes to enable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue