mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 02:23:20 +00:00
Update tests that don't run on my platform
This commit is contained in:
parent
c1cfacfb13
commit
07f99b9fec
@ -1,16 +0,0 @@
|
||||
error[E0161]: cannot move a value of type str: the size of str cannot be statically determined
|
||||
--> $DIR/E0161.rs:14:28
|
||||
|
|
||||
LL | let _x: Box<str> = box *"hello"; //~ ERROR E0161
|
||||
| ^^^^^^^^
|
||||
|
||||
error[E0507]: cannot move out of borrowed content
|
||||
--> $DIR/E0161.rs:14:28
|
||||
|
|
||||
LL | let _x: Box<str> = box *"hello"; //~ ERROR E0161
|
||||
| ^^^^^^^^ cannot move out of borrowed content
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
Some errors occurred: E0161, E0507.
|
||||
For more information about an error, try `rustc --explain E0161`.
|
@ -1,7 +1,7 @@
|
||||
error[E0583]: file not found for module `not_a_real_file`
|
||||
--> $DIR/mod_file_not_exist.rs:3:5
|
||||
|
|
||||
LL | mod not_a_real_file; //~ ERROR file not found for module `not_a_real_file`
|
||||
LL | mod not_a_real_file;
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: name the file either not_a_real_file.rs or not_a_real_file/mod.rs inside the directory "$DIR"
|
||||
|
@ -1,32 +0,0 @@
|
||||
error[E0623]: lifetime mismatch
|
||||
--> $DIR/regions-free-region-ordering-caller.rs:8:12
|
||||
|
|
||||
LL | fn call2<'a, 'b>(a: &'a usize, b: &'b usize) {
|
||||
| --------- ---------
|
||||
| |
|
||||
| these two types are declared with different lifetimes...
|
||||
LL | let z: Option<&'b &'a usize> = None;//~ ERROR E0623
|
||||
| ^^^^^^^^^^^^^^^^^^^^^ ...but data from `a` flows into `b` here
|
||||
|
||||
error[E0623]: lifetime mismatch
|
||||
--> $DIR/regions-free-region-ordering-caller.rs:13:12
|
||||
|
|
||||
LL | fn call3<'a, 'b>(a: &'a usize, b: &'b usize) {
|
||||
| --------- ---------
|
||||
| |
|
||||
| these two types are declared with different lifetimes...
|
||||
LL | let y: Paramd<'a> = Paramd { x: a };
|
||||
LL | let z: Option<&'b Paramd<'a>> = None;//~ ERROR E0623
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^ ...but data from `a` flows into `b` here
|
||||
|
||||
error[E0623]: lifetime mismatch
|
||||
--> $DIR/regions-free-region-ordering-caller.rs:17:12
|
||||
|
|
||||
LL | fn call4<'a, 'b>(a: &'a usize, b: &'b usize) {
|
||||
| --------- --------- these two types are declared with different lifetimes...
|
||||
LL | let z: Option<&'a &'b usize> = None;//~ ERROR E0623
|
||||
| ^^^^^^^^^^^^^^^^^^^^^ ...but data from `b` flows into `a` here
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0623`.
|
@ -1,13 +1,13 @@
|
||||
error: statics with a custom `#[link_section]` must be a simple list of bytes on the wasm target with no extra levels of indirection such as references
|
||||
--> $DIR/wasm-custom-section-relocations.rs:4:1
|
||||
|
|
||||
LL | pub static A: &[u8] = &[1]; //~ ERROR: no extra levels of indirection
|
||||
LL | pub static A: &[u8] = &[1];
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: statics with a custom `#[link_section]` must be a simple list of bytes on the wasm target with no extra levels of indirection such as references
|
||||
--> $DIR/wasm-custom-section-relocations.rs:13:1
|
||||
|
|
||||
LL | pub static D: &usize = &C; //~ ERROR: no extra levels of indirection
|
||||
LL | pub static D: &usize = &C;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
Loading…
Reference in New Issue
Block a user