Update tests
This commit is contained in:
parent
2060d49c39
commit
fa72a81bea
2648 changed files with 6703 additions and 6703 deletions
|
@ -1,7 +1,7 @@
|
|||
error[E0308]: mismatched types
|
||||
--> $DIR/const.rs:14:9
|
||||
|
|
||||
LL | FOO => {}, //~ ERROR mismatched types
|
||||
LL | FOO => {},
|
||||
| ^^^ expected &Foo, found struct `Foo`
|
||||
|
|
||||
= note: expected type `&Foo`
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
error[E0594]: cannot assign to immutable borrowed content `*x`
|
||||
--> $DIR/enum.rs:9:5
|
||||
|
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *x += 1;
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*x`
|
||||
--> $DIR/enum.rs:13:9
|
||||
|
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *x += 1;
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*x`
|
||||
--> $DIR/enum.rs:19:9
|
||||
|
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *x += 1;
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
error[E0594]: cannot assign to immutable borrowed content `*n`
|
||||
--> $DIR/explicit-mut.rs:7:13
|
||||
|
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *n += 1;
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*n`
|
||||
--> $DIR/explicit-mut.rs:15:13
|
||||
|
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *n += 1;
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*n`
|
||||
--> $DIR/explicit-mut.rs:23:13
|
||||
|
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
LL | *n += 1;
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error[E0308]: mismatched types
|
||||
--> $DIR/lit.rs:7:13
|
||||
|
|
||||
LL | "abc" => true, //~ ERROR mismatched types
|
||||
LL | "abc" => true,
|
||||
| ^^^^^ expected &str, found str
|
||||
|
|
||||
= note: expected type `&&str`
|
||||
|
@ -10,7 +10,7 @@ LL | "abc" => true, //~ ERROR mismatched types
|
|||
error[E0308]: mismatched types
|
||||
--> $DIR/lit.rs:16:9
|
||||
|
|
||||
LL | b"abc" => true, //~ ERROR mismatched types
|
||||
LL | b"abc" => true,
|
||||
| ^^^^^^ 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:8:14
|
||||
|
|
||||
LL | u32::XXX => { } //~ ERROR no associated item named
|
||||
LL | u32::XXX => { }
|
||||
| -----^^^
|
||||
| |
|
||||
| associated item not found in `u32`
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error[E0004]: non-exhaustive patterns: `&[]` not covered
|
||||
--> $DIR/slice.rs:6:11
|
||||
|
|
||||
LL | match sl { //~ ERROR non-exhaustive patterns
|
||||
LL | match sl {
|
||||
| ^^ pattern `&[]` not covered
|
||||
|
|
||||
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue